Fix for DCAEGEN2-376 37/34537/1
authorLusheng Ji <lji@research.att.com>
Wed, 7 Mar 2018 14:47:12 +0000 (09:47 -0500)
committerLusheng Ji <lji@research.att.com>
Wed, 7 Mar 2018 14:48:03 +0000 (09:48 -0500)
Issue-ID: DCAEGEN2-376
Change-Id: If07ae2ec696449dfd1c82896aaef6132dd5c82ac
Signed-off-by: Lusheng Ji <lji@research.att.com>
boot/dcae2_vm_init.sh

index b071dff..c8ab317 100755 (executable)
@@ -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"