summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-08-24 17:37:32 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-24 17:37:32 +0000
commit6be64db117f494bdb6d59b17676e5341c2f9c3a9 (patch)
treee3add3f08f919663dcf622d5e010f22e135e4392 /utils
parent0a912f7e971082012563150933456fac209049a4 (diff)
parent9980e24afca2ca8bd6807a4a6f5421b0a6f0e95b (diff)
Merge "utils/fetch_os_creds.sh: Fuel: Robust creds fetch"
Diffstat (limited to 'utils')
-rwxr-xr-xutils/fetch_os_creds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh
index 8374edbbd..312e1ac5c 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -107,7 +107,7 @@ if [ "$installer_type" == "fuel" ]; then
# retrieving controller vip
controller_ip=$(ssh 2>/dev/null ${ssh_options} ubuntu@${installer_ip} \
- "sudo salt --out txt 'ctl01*' pillar.get _param:openstack_control_address | awk '{print \$2}'" | \
+ "sudo salt --out txt 'ctl*' pillar.get _param:openstack_control_address | awk '{print \$2; exit}'" | \
sed 's/ //g') &> /dev/null
info "Fetching rc file from controller $controller_ip..."