Skip to content

Commit

Permalink
ocp4_workload_integreatly: fix unicode string handling in list append (
Browse files Browse the repository at this point in the history
…redhat-cop#1854)

fix unicode string handling discussed in [1] in the 3scale workshop
sso client updates.

this ensures the sso client custom resource does not contain any 'u'
characters.

components:

- role: roles_ocp_workloads/ocp4_workload_integreatly

[1] https://stackoverflow.com/questions/41521138/ansible-template-adds-u-to-array-in-template
  • Loading branch information
aidenkeating committed Jun 4, 2020
1 parent 15fed2e commit 8a50b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -116,7 +116,7 @@
until: _create_tenantdetails_secret is succeeded

- set_fact:
_sso_redirect_uris: "{{ _action_get_client.resources[0].spec.client.redirectUris + [_tenant_host + '/*'] }}"
_sso_redirect_uris: "{{ (_action_get_client.resources[0].spec.client.redirectUris | default([])) + [(_tenant_host + '/*' | string)] }}"

- name: Get managed 3scale SSO client
k8s_facts:
Expand Down
Expand Up @@ -7,7 +7,7 @@ spec:
enabled: true
clientAuthenticatorType: client-secret
fullScopeAllowed: true
redirectUris: {{ ocp4_workload_integreatly_threescale_sso_client_redirect_uris }}
redirectUris: {{ ocp4_workload_integreatly_threescale_sso_client_redirect_uris | to_json }}
access:
configure: true
manage: true
Expand Down

0 comments on commit 8a50b6e

Please sign in to comment.