Browse Source

fix: now get_required_action_by_alias now returns None if action does not exist

pull/358/head
Luca Paganin 2 years ago
parent
commit
067673f81b
  1. 2
      src/keycloak/keycloak_admin.py

2
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 None
def get_required_actions(self):
"""Get the required actions for the realms.

Loading…
Cancel
Save