mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49051 from rallytime/bp-49046
Back-port #49046 to 2017.7.8
This commit is contained in:
commit
01cf2c71ff
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class ServiceModuleTest(ModuleCase):
|
|||
if tuple(self.run_function('grains.item', ['osrelease_info'])['osrelease_info']) == (14, 0o4) and not systemd:
|
||||
# currently upstart does not have a mechanism to report if disabling a service fails if does not exist
|
||||
self.assertTrue(self.run_function('service.disable', [srv_name]))
|
||||
elif self.run_function('grains.item', ['osfullname'])['osfullname'] == 'Debian' and \
|
||||
elif self.run_function('grains.item', ['os'])['os'] == 'Debian' and \
|
||||
self.run_function('grains.item', ['osmajorrelease'])['osmajorrelease'] < 9 and systemd:
|
||||
# currently disabling a service via systemd that does not exist
|
||||
# on Debian 8 results in a True return code
|
||||
|
|
Loading…
Add table
Reference in a new issue