diff options
author | Tomofumi Hayashi <tohayash@redhat.com> | 2017-01-20 13:26:06 +0900 |
---|---|---|
committer | Tomofumi Hayashi <tohayash@redhat.com> | 2017-01-20 13:31:12 +0900 |
commit | 89e026b8df1d62f6c6e4d1f6bd7258b64beaae70 (patch) | |
tree | d7dd41aca4d8d2aa841d6e0980859428a4520c32 | |
parent | 4ce88c9d256f8bbcfd809b7800c04a9ade5d150b (diff) |
Change commands to print PublicVip to fix format issue.
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>
-rwxr-xr-x | lib/post-install-functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index eab17407..c951478a 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -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 |