Latest 'openstack stack output' commands prints output with
ascii table format, so opnfv-deploy output breaks as following:
"Overcloud dashboard available at http://+---------"
This change fix it with json+jq.
Change-Id: I594f31254caeee1dc2bc3c6d39d9640cba039f05
Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
# Print out the undercloud IP and dashboard URL
source stackrc
echo "Undercloud IP: $UNDERCLOUD, please connect by doing 'opnfv-util undercloud'"
-echo "Overcloud dashboard available at http://\$(openstack stack output show overcloud PublicVip | sed 's/"//g')/dashboard"
+echo "Overcloud dashboard available at http://\$(openstack stack output show overcloud PublicVip -f json | jq -r .output_value)/dashboard"
EOI
if [[ "$ha_enabled" == 'True' ]]; then