mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-29 08:27:34 +00:00
[PR #11260/a977c6f7 backport][stable-11] fix(sanitize_cr): avoid crash when realmrep is empty (#11267)
fix(sanitize_cr): avoid crash when realmrep is empty (#11260)
* fix(docs): missing info on id when creating realms
* fix(sanitize_cr): avoid crash when realmrep is empty
* remove unrelated change
* remove unrelated change
* added changlog
* correct: changelogs
* Update changelogs
---------
(cherry picked from commit a977c6f7c1)
Co-authored-by: Guillaume Dorschner <44686652+GuillaumeDorschner@users.noreply.github.com>
Co-authored-by: Guillaume Dorschner <guillaume.dorschner@thalesgroup.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
364e491b7e
commit
bc61b2d656
2 changed files with 6 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- keycloak_realm - fixed crash in ``sanitize_cr()`` when ``realmrep`` was ``None`` (https://github.com/ansible-collections/community.general/pull/11260).
|
||||
|
|
@ -829,6 +829,9 @@ def sanitize_cr(realmrep):
|
|||
:param realmrep: the realmrep dict to be sanitized
|
||||
:return: sanitized realmrep dict
|
||||
"""
|
||||
if not realmrep:
|
||||
return realmrep
|
||||
|
||||
result = realmrep.copy()
|
||||
if 'secret' in result:
|
||||
result['secret'] = '********'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue