mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
move the disable call up in try block
This commit is contained in:
parent
f60d21bda4
commit
f1fbfad387
1 changed files with 1 additions and 1 deletions
|
@ -129,9 +129,9 @@ class ServiceModuleTest(ModuleCase):
|
|||
self.assertTrue(self.run_function('service.disable', [srv_name]))
|
||||
else:
|
||||
try:
|
||||
disable = self.run_function('service.disable', [srv_name])
|
||||
self.assertFalse(disable)
|
||||
except AssertionError:
|
||||
disable = self.run_function('service.disable', [srv_name])
|
||||
self.assertTrue('error' in disable.lower())
|
||||
|
||||
if salt.utils.is_darwin():
|
||||
|
|
Loading…
Add table
Reference in a new issue