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
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)