In service_enable, the default of changed is True so we have to set it

to False explicitly if it is False.

Fixes #875
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent 72b49f4c71
commit 939ecd33d4

@ -776,6 +776,8 @@ class LinuxService(Service):
self.module.fail_json(msg=err) self.module.fail_json(msg=err)
else: else:
self.module.fail_json(msg=out) % (self.enable_cmd, self.name, action) self.module.fail_json(msg=out) % (self.enable_cmd, self.name, action)
else:
self.changed = False
return return

Loading…
Cancel
Save