X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ffetch_os_creds.sh;h=4bc585885a1738b9337a6d210d2a8870b19705a9;hb=4935770c3b592b01e5710703dcfd2e97684b5b3b;hp=7a79da4f44e73e03344de0c3e20b522d35cb474a;hpb=8f2dfa0d6881e43aa8f2f52b51bdaf3c64d1efb6;p=releng.git diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index 7a79da4f4..4bc585885 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -114,8 +114,10 @@ if [ "$installer_type" == "fuel" ]; then ssh ${ssh_options} "${ssh_user}@${controller_ip}" \ "sudo cat /root/keystonercv3" > "${dest_path}" - ssh ${ssh_options} "${ssh_user}@${installer_ip}" \ - "cat /etc/ssl/certs/os_cacert" > "${os_cacert}" || touch "${os_cacert}" + if [[ ! "${BUILD_TAG}" =~ 'virtual' ]]; then + ssh ${ssh_options} "${ssh_user}@${installer_ip}" \ + "cat /etc/ssl/certs/os_cacert" > "${os_cacert}" + fi 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