Change commands to print PublicVip to fix format issue. 65/27265/1
authorTomofumi Hayashi <tohayash@redhat.com>
Fri, 20 Jan 2017 04:26:06 +0000 (13:26 +0900)
committerTomofumi Hayashi <tohayash@redhat.com>
Fri, 20 Jan 2017 04:31:12 +0000 (13:31 +0900)
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>
lib/post-install-functions.sh

index eab1740..c951478 100755 (executable)
@@ -221,7 +221,7 @@ done
 # 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