Minor tweak to service changed logic from the previous commit

reviewable/pr18780/r1
James Cammarata 11 years ago
parent 8bdb95a014
commit 3511687dad

@ -1134,9 +1134,7 @@ def main():
else: else:
module.fail_json(msg=out) module.fail_json(msg=out)
if service.svc_change is True: result['changed'] = service.changed | service.svc_change
service.changed = True
result['changed'] = service.changed
if service.module.params['enabled'] is not None: if service.module.params['enabled'] is not None:
result['enabled'] = service.module.params['enabled'] result['enabled'] = service.module.params['enabled']

Loading…
Cancel
Save