From 46dcc7d2514bfc5102e591b9b683ccd798f434e7 Mon Sep 17 00:00:00 2001 From: Eike Frost Date: Thu, 31 Jan 2019 16:59:00 +0100 Subject: [PATCH] fix changed-behaviour in check mode (to not always return True) (#37776) --- lib/ansible/modules/identity/keycloak/keycloak_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/identity/keycloak/keycloak_client.py b/lib/ansible/modules/identity/keycloak/keycloak_client.py index 2e040e6d25..fe6984dae9 100644 --- a/lib/ansible/modules/identity/keycloak/keycloak_client.py +++ b/lib/ansible/modules/identity/keycloak/keycloak_client.py @@ -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)