mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #8223/f55342d8 backport][stable-8] keycloak_client: add sorted defaultClientScopes and optionalClientScopes to normalizations (#8254)
keycloak_client: add sorted defaultClientScopes and optionalClientScopes to normalizations (#8223)
keycloak_client: add sorted defaultClientScopes and optionalClientScopes
to normalizations
Signed-off-by: Eike Waldt <waldt@b1-systems.de>
(cherry picked from commit f55342d8af
)
Co-authored-by: Eike Waldt <waldt@b1-systems.de>
This commit is contained in:
parent
d19b4f958b
commit
dd74e29558
2 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- keycloak_client - add sorted ``defaultClientScopes`` and ``optionalClientScopes`` to normalizations (https://github.com/ansible-collections/community.general/pull/8223).
|
|
@ -744,6 +744,12 @@ def normalise_cr(clientrep, remove_ids=False):
|
||||||
if 'attributes' in clientrep:
|
if 'attributes' in clientrep:
|
||||||
clientrep['attributes'] = list(sorted(clientrep['attributes']))
|
clientrep['attributes'] = list(sorted(clientrep['attributes']))
|
||||||
|
|
||||||
|
if 'defaultClientScopes' in clientrep:
|
||||||
|
clientrep['defaultClientScopes'] = list(sorted(clientrep['defaultClientScopes']))
|
||||||
|
|
||||||
|
if 'optionalClientScopes' in clientrep:
|
||||||
|
clientrep['optionalClientScopes'] = list(sorted(clientrep['optionalClientScopes']))
|
||||||
|
|
||||||
if 'redirectUris' in clientrep:
|
if 'redirectUris' in clientrep:
|
||||||
clientrep['redirectUris'] = list(sorted(clientrep['redirectUris']))
|
clientrep['redirectUris'] = list(sorted(clientrep['redirectUris']))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue