From 16b7c1f212a468bd65ae2032e1d06b2371c04bd6 Mon Sep 17 00:00:00 2001 From: Bastien Beuchat Date: Thu, 15 May 2025 11:24:40 +0200 Subject: [PATCH] ensure we do not have priority in non kc26 context --- plugins/modules/keycloak_authentication.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/modules/keycloak_authentication.py b/plugins/modules/keycloak_authentication.py index 53b0db90cbe..1833bd78138 100644 --- a/plugins/modules/keycloak_authentication.py +++ b/plugins/modules/keycloak_authentication.py @@ -503,6 +503,9 @@ def create_or_update_executions(kc, config, check_mode, new_flow=False, realm='m if kc26 and ("priority" not in new_exec or new_exec["priority"] is None): new_exec["priority"] = new_exec["index"] + if not kc26: + del new_exec["priority"] + # Check if there exists an execution with same name/providerID, at the same level as new execution exec_index = find_exec_in_executions(new_exec, existing_executions, changed_executions_ids) if exec_index != -1: