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

fix changed-behaviour in check mode (to not always return True) (#37776)

This commit is contained in:
Eike Frost 2019-01-31 16:59:00 +01:00 committed by ansibot
parent 15cef845ca
commit 46dcc7d251

View file

@ -800,6 +800,7 @@ def main():
if module._diff:
result['diff'] = dict(before=sanitize_cr(before_client),
after=sanitize_cr(updated_client))
result['changed'] = (before_client != updated_client)
module.exit_json(**result)