mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2017.7' into 1045_test_pkg_015_installed_held_centos
This commit is contained in:
commit
0bb10107b6
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ 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 systemd:
|
||||
self.assertTrue(self.run_function('service.disable', [srv_name]))
|
||||
else:
|
||||
try:
|
||||
disable = self.run_function('service.disable', [srv_name])
|
||||
|
|
Loading…
Add table
Reference in a new issue