Continue checking for request url if initially null
authorJames Slagle <jslagle@redhat.com>
Sun, 8 Jan 2017 21:21:51 +0000 (16:21 -0500)
committerJames Slagle <jslagle@redhat.com>
Sun, 8 Jan 2017 23:40:50 +0000 (18:40 -0500)
commitc9596b72a1efd9733361081029f2dc0e194d0b6d
treed17534a0d977d8e6a65a9aa2688d2ac15be512b2
parent64eb5a1944332301900df1dc4fc2d226336d1bca
Continue checking for request url if initially null

When using get-occ-config.sh during overcloud upgrades, the script could
potentially be started before the stack has been upgraded. In that
scenario, the script will return null for the request metadata url for
the deployed-server resource since the stack has not yet been updated
and it's still using the previous Heat signaling.

This patch updates the script to just continue checking the resource
metadata if the request url is null. Eventually, once the resource has
been updated, the script will continue and properly populate the
os-collect-config configuration.

Change-Id: I9db54d8ad278715f42b768edf8f0fd21998b2098
deployed-server/scripts/get-occ-config.sh