At the moment it was done in a fishy way to grep for
the public ip. This commit fixes it.
Change-Id: If14488c18c67cd66e885a7376e1c50a3a28e17f7
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
echo "Checking OpenStack endpoints:"
-publicURL=$OS_AUTH_URL
+publicURL=$(openstack catalog show identity |awk '/public/ {print $4}')
publicIP=$(echo $publicURL|sed 's/^.*http\:\/\///'|sed 's/.[^:]*$//')
publicPort=$(echo $publicURL|sed 's/^.*://'|sed 's/\/.*$//')
echo ">>Verifying connectivity to the public endpoint $publicIP:$publicPort..."