Fix test_disabled

Use get instead of pop
This commit is contained in:
twangboy 2016-03-23 11:19:02 -06:00
parent fef8f90919
commit 9308ad1e7a
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ def launchctl(sub_cmd, *args, **kwargs):
salt '*' service.launchctl debug org.cups.cupsd
'''
# Get return type
return_stdout = kwargs.pop('return_stdout', False)
return_stdout = kwargs.get('return_stdout', False)
# Construct command
cmd = ['launchctl', sub_cmd]

View File

@ -181,7 +181,7 @@ class MacServiceModuleTest(integration.ModuleCase):
self.assertTrue(self.run_function('service.stop', [SERVICE_NAME]))
self.assertTrue(self.run_function('service.disabled', [SERVICE_NAME]))
self.assertTrue(self.run_function('service.enabled', ['spongebob']))
self.assertTrue(self.run_function('service.disabled', ['spongebob']))
def test_get_all(self):
'''