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:
parent
15cef845ca
commit
46dcc7d251
1 changed files with 1 additions and 0 deletions
|
@ -800,6 +800,7 @@ def main():
|
||||||
if module._diff:
|
if module._diff:
|
||||||
result['diff'] = dict(before=sanitize_cr(before_client),
|
result['diff'] = dict(before=sanitize_cr(before_client),
|
||||||
after=sanitize_cr(updated_client))
|
after=sanitize_cr(updated_client))
|
||||||
|
result['changed'] = (before_client != updated_client)
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue