Merge pull request #49046 from garethgreenaway/1022_fixing_test_failing_py3_Debian_test

[2017.7] Another fix to tests/integration/modules/test_service.py
This commit is contained in:
Nicole Thomas 2018-08-09 21:22:56 -04:00 committed by GitHub
commit 70be9ac9b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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