From a8b1e21c2fddb6ba33eaeb8f2ac0ddf78720910d Mon Sep 17 00:00:00 2001 From: Felix Gruenbauer Date: Mon, 16 Sep 2024 12:10:14 +0200 Subject: [PATCH] keycloak_realm: fix change detection in check mode by normalizing realms beforehand --- plugins/modules/keycloak_realm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/keycloak_realm.py b/plugins/modules/keycloak_realm.py index 6128c9e4c7e..9bbcdb6b1a9 100644 --- a/plugins/modules/keycloak_realm.py +++ b/plugins/modules/keycloak_realm.py @@ -803,7 +803,7 @@ def main(): if module._diff: result['diff'] = dict(before=sanitize_cr(before_norm), after=sanitize_cr(desired_norm)) - result['changed'] = (before_realm != desired_realm) + result['changed'] = (before_norm != desired_norm) module.exit_json(**result)