diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-16 10:06:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-16 10:06:36 +0000 |
commit | e0d1ab8da4950d2ae7c82992289ae60ee5fb363b (patch) | |
tree | 4ae54a8b16b421d2e8ab70946c55b78cd148ad93 /deployed-server/scripts/get-occ-config.sh | |
parent | 7f7de5492583558a627cbc4a6a29ed69e4bb7f17 (diff) | |
parent | c9596b72a1efd9733361081029f2dc0e194d0b6d (diff) |
Merge "Continue checking for request url if initially null"
Diffstat (limited to 'deployed-server/scripts/get-occ-config.sh')
-rwxr-xr-x | deployed-server/scripts/get-occ-config.sh | 9 |
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:" |