From 4e1c1edce886c07f005d28560f3fde0abeb3b92f Mon Sep 17 00:00:00 2001 From: Stephen Dendtler Date: Wed, 6 Jan 2021 17:37:20 +0000 Subject: [PATCH] Fixed variable names --- dnsapi/dns_rackcorp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_rackcorp.sh b/dnsapi/dns_rackcorp.sh index 27d88f2f..e5ad54db 100644 --- a/dnsapi/dns_rackcorp.sh +++ b/dnsapi/dns_rackcorp.sh @@ -142,13 +142,13 @@ _rackcorp_validate() { _rackcorp_api() { _rackcorpcmd=$1 _rackcorpinputdata=$2 - _debug "$cmd" "$2" + _debug cmd "$_rackcorpcmd $_rackcorpinputdata" export _H1="Accept: application/json" response="$(_post "{\"APIUUID\":\"$RACKCORP_APIUUID\",\"APISECRET\":\"$RACKCORP_APISECRET\",\"cmd\":\"$_rackcorpcmd\",$_rackcorpinputdata}" "$RACKCORP_API_ENDPOINT" "" "POST")" if [ "$?" != "0" ]; then - _err "error $ep" + _err "error $response" return 1 fi _debug2 response "$response"