Commit f6c3dce4 by Michael DeHaan

Merge pull request #4336 from orkaa/devel

Fixes service update-rc.d functionality on debian
parents a8902e87 672a0c04
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment