From 623b3cc8fd9693cd8dfc3c073440ed6c21fbd22b Mon Sep 17 00:00:00 2001 From: Mirko Wilhelmi Date: Tue, 17 Jan 2023 15:40:23 +0100 Subject: [PATCH 1/2] feat(modules/keycloak_user_federation): mapper ... ... provider type should have a default value --- plugins/modules/keycloak_user_federation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/modules/keycloak_user_federation.py b/plugins/modules/keycloak_user_federation.py index 3e66c577ecd..297169fe1ce 100644 --- a/plugins/modules/keycloak_user_federation.py +++ b/plugins/modules/keycloak_user_federation.py @@ -451,8 +451,9 @@ providerType: description: - - Component type for this mapper (only supported value is C(org.keycloak.storage.ldap.mappers.LDAPStorageMapper)). + - Component type for this mapper. type: str + default: org.keycloak.storage.ldap.mappers.LDAPStorageMapper config: description: @@ -776,7 +777,7 @@ def main(): name=dict(type='str'), parentId=dict(type='str'), providerId=dict(type='str'), - providerType=dict(type='str'), + providerType=dict(type='str', default='org.keycloak.storage.ldap.mappers.LDAPStorageMapper'), config=dict(type='dict'), ) From a404b888bf783990a2fcf2c1c94f7a0efff297b0 Mon Sep 17 00:00:00 2001 From: Mirko Wilhelmi Date: Thu, 19 Jan 2023 15:58:26 +0100 Subject: [PATCH 2/2] add changelog fragment --- .../5863-providerType-defaulted-keycloak_userfed-mappers.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/5863-providerType-defaulted-keycloak_userfed-mappers.yml diff --git a/changelogs/fragments/5863-providerType-defaulted-keycloak_userfed-mappers.yml b/changelogs/fragments/5863-providerType-defaulted-keycloak_userfed-mappers.yml new file mode 100644 index 00000000000..6532ea92d9d --- /dev/null +++ b/changelogs/fragments/5863-providerType-defaulted-keycloak_userfed-mappers.yml @@ -0,0 +1,2 @@ +minor_changes: + - keycloak_user_federation - make ``org.keycloak.storage.ldap.mappers.LDAPStorageMapper`` the default value for mappers ``providerType`` (https://github.com/ansible-collections/community.general/pull/5863).