aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-07 09:47:12 -0500
committerLusheng Ji <lji@research.att.com>2018-03-07 09:48:03 -0500
commit0aac10bdbaac9972bd0fbf09fa6eee55223b42d5 (patch)
tree5c97a1590b56dab5d235be70fba062eed883057d
parentef701a3a1ffe87d1e3284791dac12454fe334304 (diff)
Fix for DCAEGEN2-376
Issue-ID: DCAEGEN2-376 Change-Id: If07ae2ec696449dfd1c82896aaef6132dd5c82ac Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xboot/dcae2_vm_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/dcae2_vm_init.sh b/boot/dcae2_vm_init.sh
index b071dffd..c8ab317e 100755
--- a/boot/dcae2_vm_init.sh
+++ b/boot/dcae2_vm_init.sh
@@ -487,7 +487,7 @@ register_dns_zone_designate()
API_ENDPOINT="${DESIGNATE_URL}/v2/zones"
echo "===> Register DNS zone $ZONE_NAME at Designate API endpoint ${API_ENDPOINT}"
- RESP=$(curl -v -s -H $HEADER_TOKEN $API_ENDPOINT)
+ RESP=$(curl -v -s -H "$HEADER_TOKEN" "$API_ENDPOINT")
ZONE_ID=$(echo $RESP |jq -r --arg ZONE_NAME "$ZONE_NAME" '.zones[] |select(.name==$ZONE_NAME) |.id')
if [ -z "$ZONE_ID" ]; then
echo "======> Zone ${ZONE_NAME} does not exist. Create"