Fixes service update-rc.d functionality on debian

This commit is contained in:
Nace Oroz 2013-10-02 13:53:10 +02:00
parent 88b9bc5de8
commit 1f39663a97

View file

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