Fixes service update-rc.d functionality on debian

pull/4336/head
Nace Oroz 11 years ago
parent 8a4310d9b9
commit 672a0c04e4

@ -633,6 +633,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)

Loading…
Cancel
Save