From 067673f81b2748a55ac02e1739815ba3a80fa76e Mon Sep 17 00:00:00 2001 From: Luca Paganin Date: Mon, 18 Jul 2022 17:11:04 +0200 Subject: [PATCH] fix: now get_required_action_by_alias now returns None if action does not exist --- src/keycloak/keycloak_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index 66c1fe6..7d16ad5 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -2878,8 +2878,8 @@ class KeycloakAdmin: actions = self.get_required_actions() for a in actions: if a["alias"] == action_alias: - break - return a + return a + return None def get_required_actions(self): """Get the required actions for the realms.