summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
ef701a3)
Issue-ID: DCAEGEN2-376
Change-Id: If07ae2ec696449dfd1c82896aaef6132dd5c82ac
Signed-off-by: Lusheng Ji <lji@research.att.com>
API_ENDPOINT="${DESIGNATE_URL}/v2/zones"
echo "===> Register DNS zone $ZONE_NAME at Designate API endpoint ${API_ENDPOINT}"
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"
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"