From c0e59990630081d067b9287accca6fbf08c1095e Mon Sep 17 00:00:00 2001 From: Alexandr Fomenko Date: Tue, 19 Apr 2022 12:06:51 +0300 Subject: [PATCH 1/3] Fix keycloack realm parameters types --- plugins/modules/identity/keycloak/keycloak_realm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/modules/identity/keycloak/keycloak_realm.py b/plugins/modules/identity/keycloak/keycloak_realm.py index 289c13504a6..90b8d62a569 100644 --- a/plugins/modules/identity/keycloak/keycloak_realm.py +++ b/plugins/modules/identity/keycloak/keycloak_realm.py @@ -156,7 +156,7 @@ aliases: - defaultDefaultClientScopes type: list - elements: dict + elements: str default_groups: description: - The realm default groups. @@ -176,7 +176,7 @@ aliases: - defaultOptionalClientScopes type: list - elements: dict + elements: str default_roles: description: - The realm default roles. @@ -621,10 +621,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']), From 1658e7da675c583bf615d7b14798ceb0ef1b0e12 Mon Sep 17 00:00:00 2001 From: Alexandr Fomenko Date: Tue, 19 Apr 2022 12:19:38 +0300 Subject: [PATCH 2/3] Add changelog fragment --- changelogs/fragments/4526-keycloak-realm-types.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/4526-keycloak-realm-types.yaml diff --git a/changelogs/fragments/4526-keycloak-realm-types.yaml b/changelogs/fragments/4526-keycloak-realm-types.yaml new file mode 100644 index 00000000000..d8111d95103 --- /dev/null +++ b/changelogs/fragments/4526-keycloak-realm-types.yaml @@ -0,0 +1,2 @@ +bugfixes: + - keycloak - fix parameters `defaultDefaultClientScopes` and `defaultOptionalClientScopes` (https://github.com/ansible-collections/community.general/pull/4526). From 6d0d610a36c6cc010bba03a4aa469faaa4218ad5 Mon Sep 17 00:00:00 2001 From: Alexandr <36310479+Vespand@users.noreply.github.com> Date: Tue, 19 Apr 2022 21:42:45 +0300 Subject: [PATCH 3/3] Update changelog fragment Co-authored-by: Felix Fontein --- changelogs/fragments/4526-keycloak-realm-types.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/4526-keycloak-realm-types.yaml b/changelogs/fragments/4526-keycloak-realm-types.yaml index d8111d95103..ff1699d7f80 100644 --- a/changelogs/fragments/4526-keycloak-realm-types.yaml +++ b/changelogs/fragments/4526-keycloak-realm-types.yaml @@ -1,2 +1,2 @@ bugfixes: - - keycloak - fix parameters `defaultDefaultClientScopes` and `defaultOptionalClientScopes` (https://github.com/ansible-collections/community.general/pull/4526). + - 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).