From 98b9e3326a13f5b379666b754aa7cdef92d791a6 Mon Sep 17 00:00:00 2001 From: gui1207 Date: Fri, 21 Oct 2022 17:33:49 +0100 Subject: [PATCH] Fixing _cloudhub_rest validation check --- deploy/cloudhub_v2.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/cloudhub_v2.sh b/deploy/cloudhub_v2.sh index 604ca5f8..5c1d73a0 100755 --- a/deploy/cloudhub_v2.sh +++ b/deploy/cloudhub_v2.sh @@ -126,9 +126,8 @@ cloudhub_v2_deploy() { cert_response="$(_cloudhub_rest "PATCH" "/runtimefabric/api/organizations/$ORGANIZATION_ID/privatespaces/$CH2_PRIVATE_SPACE_ID/tlsContexts/$tls_context_id" "$cert_data")" fi - _debug cert_response "$cert_response" - _ret="$?" + _debug cert_response "$cert_response" if [ "$_ret" != 0 ]; then _err "Error while creating/updating TLS-Context" @@ -191,7 +190,6 @@ _cloudhub_rest() { http_code="$(grep "^HTTP" "$HTTP_HEADER" | _tail_n 1 | cut -d " " -f 2 | tr -d "\\r\\n")" _debug "HTTP status $http_code" _debug response "$response" - _debug _ret "$_ret" if [ "$_ret" = "0" ] && { [ "$http_code" -ge 200 ] && [ "$http_code" -le 299 ]; }; then printf "%s" "$response"