aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-16 10:06:36 +0000
committerGerrit Code Review <review@openstack.org>2017-01-16 10:06:36 +0000
commite0d1ab8da4950d2ae7c82992289ae60ee5fb363b (patch)
tree4ae54a8b16b421d2e8ab70946c55b78cd148ad93
parent7f7de5492583558a627cbc4a6a29ed69e4bb7f17 (diff)
parentc9596b72a1efd9733361081029f2dc0e194d0b6d (diff)
Merge "Continue checking for request url if initially null"
-rwxr-xr-xdeployed-server/scripts/get-occ-config.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/deployed-server/scripts/get-occ-config.sh b/deployed-server/scripts/get-occ-config.sh
index 404244b1..6c196f97 100755
--- a/deployed-server/scripts/get-occ-config.sh
+++ b/deployed-server/scripts/get-occ-config.sh
@@ -79,7 +79,14 @@ for role in $OVERCLOUD_ROLES; do
server_stack=$(openstack stack resource show $stack $server_resource_name -c physical_resource_id -f value)
done
- deployed_server_metadata_url=$(openstack stack resource metadata $server_stack deployed-server | jq -r '.["os-collect-config"].request.metadata_url')
+ while true; do
+ deployed_server_metadata_url=$(openstack stack resource metadata $server_stack deployed-server | jq -r '.["os-collect-config"].request.metadata_url')
+ if [ "$deployed_server_metadata_url" = "null" ]; then
+ continue
+ else
+ break
+ fi
+ done
echo "======================"
echo "$role$i os-collect-config.conf configuration:"