From 95b8afdea3dd76a045ef00e86fbeb64bc8279c10 Mon Sep 17 00:00:00 2001 From: morco Date: Sat, 25 Feb 2023 10:59:18 +0100 Subject: [PATCH] providerType should be defaulted for keycloak_user_federation mappers (#5863) * feat(modules/keycloak_user_federation): mapper ... ... provider type should have a default value * add changelog fragment --------- Co-authored-by: Mirko Wilhelmi --- .../5863-providerType-defaulted-keycloak_userfed-mappers.yml | 2 ++ plugins/modules/keycloak_user_federation.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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). diff --git a/plugins/modules/keycloak_user_federation.py b/plugins/modules/keycloak_user_federation.py index 8e1ddb12d9f..c0dc5d271be 100644 --- a/plugins/modules/keycloak_user_federation.py +++ b/plugins/modules/keycloak_user_federation.py @@ -456,8 +456,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: @@ -782,7 +783,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'), )