Skip to content

Commit

Permalink
Fix keycloak sanitize_cr
Browse files Browse the repository at this point in the history
  • Loading branch information
claudusd committed Feb 3, 2023
1 parent 868699d commit be1832b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/keycloak_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@
from ansible_collections.community.general.plugins.module_utils.identity.keycloak.keycloak import KeycloakAPI, camel, \
keycloak_argument_spec, get_token, KeycloakError
from ansible.module_utils.basic import AnsibleModule

import copy

def normalise_cr(clientrep, remove_ids=False):
""" Re-sorts any properties where the order so that diff's is minimised, and adds default values where appropriate so that the
Expand Down Expand Up @@ -750,7 +750,7 @@ def sanitize_cr(clientrep):
:param clientrep: the clientrep dict to be sanitized
:return: sanitized clientrep dict
"""
result = clientrep.copy()
result = copy.deepcopy(clientrep)
if 'secret' in result:
result['secret'] = 'no_log'
if 'attributes' in result:
Expand Down

0 comments on commit be1832b

Please sign in to comment.