Merge pull request #4336 from orkaa/devel

Fixes service update-rc.d functionality on debian
This commit is contained in:
Michael DeHaan 2013-10-07 05:56:43 -07:00
commit c405a61505

View file

@ -634,6 +634,12 @@ class LinuxService(Service):
self.changed = True
break
# Debian compatibility
for line in err.splitlines():
if self.enable and line.find('no runlevel symlinks to modify') != -1:
self.changed = True
break
if self.module.check_mode:
self.module.exit_json(changed=self.changed)