From: Lusheng Ji Date: Wed, 7 Mar 2018 14:47:12 +0000 (-0500) Subject: Fix for DCAEGEN2-376 X-Git-Tag: v1.2.0~135 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=0aac10bdbaac9972bd0fbf09fa6eee55223b42d5;p=demo.git Fix for DCAEGEN2-376 Issue-ID: DCAEGEN2-376 Change-Id: If07ae2ec696449dfd1c82896aaef6132dd5c82ac Signed-off-by: Lusheng Ji --- 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"