summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xutils/fetch_os_creds.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh
index ac7595053..7a79da4f4 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -114,10 +114,8 @@ if [ "$installer_type" == "fuel" ]; then
ssh ${ssh_options} "${ssh_user}@${controller_ip}" \
"sudo cat /root/keystonercv3" > "${dest_path}"
- if [[ "${BUILD_TAG}" =~ "baremetal" ]]; then
- ssh ${ssh_options} "${ssh_user}@${installer_ip}" \
- "cat /etc/ssl/certs/os_cacert" > "${os_cacert}"
- fi
+ ssh ${ssh_options} "${ssh_user}@${installer_ip}" \
+ "cat /etc/ssl/certs/os_cacert" > "${os_cacert}" || touch "${os_cacert}"
else
env=$(sshpass -p r00tme ssh 2>/dev/null ${ssh_options} root@${installer_ip} \
'fuel env'|grep operational|head -1|awk '{print $1}') &> /dev/null