Merge "add a default value for SSH_KEY"
authorSerena Feng <feng.xiaowei@zte.com.cn>
Wed, 4 Apr 2018 06:21:24 +0000 (06:21 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 4 Apr 2018 06:21:24 +0000 (06:21 +0000)
jjb/functest/functest-env-presetup.sh

index 4738121..323b325 100755 (executable)
@@ -49,7 +49,7 @@ elif [[ ${INSTALLER_TYPE} == 'daisy' ]]; then
 elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then
     if [[ ! "${BRANCH}" =~ "danube" ]]; then
         echo "Map mcp ssh_key"
-        export sshkey_vol="-v ${SSH_KEY}:/root/.ssh/id_rsa"
+        export sshkey_vol="-v ${SSH_KEY:-/var/lib/opnfv/mcp.rsa}:/root/.ssh/id_rsa"
     fi
 fi