ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

commit 435fbf81dc45167c89b5a9f60a47140ed89008a4
parent d7586e111357466b683976ed2a0d08e076fdfe43
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 14 Apr 2025 21:41:15 +0200

fix ansible conversion after Sebastian's challenger KYC field name change

Diffstat:
Mroles/challenger/files/usr/local/bin/jq-sms-converter | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/roles/challenger/files/usr/local/bin/jq-sms-converter b/roles/challenger/files/usr/local/bin/jq-sms-converter @@ -5,17 +5,17 @@ # exchange oauth2 plugin expects it as a String. # Additionally, we need to check that we got the expected # "phone" address type (and otherwise exit with failure), -# and finally move the .address.phone value to +# and finally move the .address.CONTACT_PHONE value to # the "CONTACT_PHONE" field. # # Uses JQ to convert! -exec jq 'if .address_type!="phone" then halt_error(4) else (. | .id?) |= (. | tostring) | .CONTACT_PHONE=.address.phone | del(.address) | del(.address_type) end' +exec jq 'if .address_type!="phone" then halt_error(4) else (. | .id?) |= (. | tostring) | .CONTACT_PHONE=.address.CONTACT_PHONE | del(.address) | del(.address_type) end' # Example input: # { # "id": 1, # "address": { -# "phone": "+4112345678" +# "CONTACT_PHONE": "+4112345678" # }, # "address_type": "phone", # "expires": { @@ -32,4 +32,4 @@ exec jq 'if .address_type!="phone" then halt_error(4) else (. | .id?) |= (. | to # } # "CONTACT_PHONE": "+4112345678" # } -# -\ No newline at end of file +#