diff --git a/changelogs/fragments/4526-keycloak-realm-types.yaml b/changelogs/fragments/4526-keycloak-realm-types.yaml new file mode 100644 index 0000000000..ff1699d7f8 --- /dev/null +++ b/changelogs/fragments/4526-keycloak-realm-types.yaml @@ -0,0 +1,2 @@ +bugfixes: + - keycloak - fix parameters types for ``defaultDefaultClientScopes`` and ``defaultOptionalClientScopes`` from list of dictionaries to list of strings (https://github.com/ansible-collections/community.general/pull/4526). diff --git a/plugins/modules/identity/keycloak/keycloak_realm.py b/plugins/modules/identity/keycloak/keycloak_realm.py index da37fa2723..d07e0fc723 100644 --- a/plugins/modules/identity/keycloak/keycloak_realm.py +++ b/plugins/modules/identity/keycloak/keycloak_realm.py @@ -155,7 +155,7 @@ options: aliases: - defaultDefaultClientScopes type: list - elements: dict + elements: str default_groups: description: - The realm default groups. @@ -175,7 +175,7 @@ options: aliases: - defaultOptionalClientScopes type: list - elements: dict + elements: str default_roles: description: - The realm default roles. @@ -618,10 +618,10 @@ def main(): brute_force_protected=dict(type='bool', aliases=['bruteForceProtected']), client_authentication_flow=dict(type='str', aliases=['clientAuthenticationFlow']), client_scope_mappings=dict(type='dict', aliases=['clientScopeMappings']), - default_default_client_scopes=dict(type='list', elements='dict', aliases=['defaultDefaultClientScopes']), + default_default_client_scopes=dict(type='list', elements='str', aliases=['defaultDefaultClientScopes']), default_groups=dict(type='list', elements='dict', aliases=['defaultGroups']), default_locale=dict(type='str', aliases=['defaultLocale']), - default_optional_client_scopes=dict(type='list', elements='dict', aliases=['defaultOptionalClientScopes']), + default_optional_client_scopes=dict(type='list', elements='str', aliases=['defaultOptionalClientScopes']), default_roles=dict(type='list', elements='dict', aliases=['defaultRoles']), default_signature_algorithm=dict(type='str', aliases=['defaultSignatureAlgorithm']), direct_grant_flow=dict(type='str', aliases=['directGrantFlow']),