From f0f30961da832de9c7a0cb2cd42ff7fe5d315009 Mon Sep 17 00:00:00 2001 From: Frank Laszlo Date: Wed, 30 Jan 2019 09:45:53 -0500 Subject: [PATCH] fix --- dnsapi/dns_nw.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_nw.sh b/dnsapi/dns_nw.sh index b152fa13..c57d27c2 100644 --- a/dnsapi/dns_nw.sh +++ b/dnsapi/dns_nw.sh @@ -126,7 +126,7 @@ dns_nw_rm() { _check_nw_api_creds() { NW_API_TOKEN="${NW_API_TOKEN:-$(_readaccountconf_mutable NW_API_TOKEN)}" - NW_API_ENDPOINT="${NW_API_TOKEN:-$(_readaccountconf_mutable NW_API_TOKEN)}" + NW_API_ENDPOINT="${NW_API_ENDPOINT:-$(_readaccountconf_mutable NW_API_ENDPOINT)}" if [ -z "${NW_API_ENDPOINT}" ]; then NW_API_ENDPOINT="https://portal.nexcess.net" @@ -183,7 +183,7 @@ _get_root() { _rest() { method="${1}" - ep="${2}" + ep="/${2}" data="${3}" _debug method "${method}"