switch to json

This commit is contained in:
Jason Ertel
2024-10-30 12:44:01 -04:00
parent 3f3ac21f50
commit a146153ee9
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ function manage_client() {
name=$(echo "$request" | jq -r .name)
note=$(echo "$request" | jq -r .note)
log "Performing client '$op' for client with name '$name', note '$note' and role '$role'"
response=$(so-client "$op" --name "$name" --note "$note" --role "$role" --raw)
response=$(so-client "$op" --name "$name" --note "$note" --role "$role" --json)
webResponse=$response
exit_code=$?
;;
@@ -190,7 +190,7 @@ function manage_client() {
generate-secret)
client_id=$(echo "$request" | jq -r .id)
log "Performing '$op' operation for client '$client_id'"
response=$(so-client "$op" --id "$client_id" --raw)
response=$(so-client "$op" --id "$client_id" --json)
webResponse=$response
exit_code=$?
;;