Fixed variable names

This commit is contained in:
Stephen Dendtler 2021-01-06 17:37:20 +00:00
parent a7a6dfb469
commit 4e1c1edce8

View File

@ -142,13 +142,13 @@ _rackcorp_validate() {
_rackcorp_api() { _rackcorp_api() {
_rackcorpcmd=$1 _rackcorpcmd=$1
_rackcorpinputdata=$2 _rackcorpinputdata=$2
_debug "$cmd" "$2" _debug cmd "$_rackcorpcmd $_rackcorpinputdata"
export _H1="Accept: application/json" export _H1="Accept: application/json"
response="$(_post "{\"APIUUID\":\"$RACKCORP_APIUUID\",\"APISECRET\":\"$RACKCORP_APISECRET\",\"cmd\":\"$_rackcorpcmd\",$_rackcorpinputdata}" "$RACKCORP_API_ENDPOINT" "" "POST")" response="$(_post "{\"APIUUID\":\"$RACKCORP_APIUUID\",\"APISECRET\":\"$RACKCORP_APISECRET\",\"cmd\":\"$_rackcorpcmd\",$_rackcorpinputdata}" "$RACKCORP_API_ENDPOINT" "" "POST")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "error $ep" _err "error $response"
return 1 return 1
fi fi
_debug2 response "$response" _debug2 response "$response"