1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Minor tweak to service changed logic from the previous commit

This commit is contained in:
James Cammarata 2013-09-19 15:00:25 -05:00
parent f62093da56
commit c2e02fbd6b

View file

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