summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-07-26 13:50:52 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2016-07-26 12:55:25 +0000
commit9e55411efe8af411938ed39ccac43bc6d3485684 (patch)
tree3a03713b1dfcc6e0365e71a04a9efd94feaf84f6 /utils
parenta090ce76d2641d53e5412fc51957dd13cd1f1b61 (diff)
Replace single by double quotes in fetch credentials
'fuel --env $env_id' fails because a variable in single quotes is not read, it is treated as a literal string. When using double quotes, the variable is replaced by its value Change-Id: I39e777ec27c547e012d6f4674bc24e20d421889c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
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 65c8af3d2..0f4b25db8 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -89,7 +89,7 @@ if [ "$installer_type" == "fuel" ]; then
# Check if controller is alive (online='True')
controller_ip=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
- 'fuel node --env ${env_id} | grep controller | grep "True\| 1" | awk -F\| "{print \$5}" | tail -1' | \
+ "fuel node --env ${env_id} | grep controller | grep 'True\| 1' | awk -F\| '{print \$5}' | head -1" | \
sed 's/ //g') &> /dev/null
if [ -z $controller_ip ]; then