JIRA: DOVETAIL-472
It's permission denied When copy id_rsa file from Apex undercloud.
Add sudo to the scp operation.
Change-Id: I97bd8a74c406269d066dcde36978c17aa3ce6be2
Signed-off-by: xudan <xudan16@huawei.com>
if [ "$INSTALLER_TYPE" == "apex" ]; then
echo "Fetching id_rsa file from jump_server $INSTALLER_IP..."
- scp $ssh_options stack@${INSTALLER_IP}:~/.ssh/id_rsa ${DOVETAIL_CONFIG}/id_rsa
+ sudo scp $ssh_options stack@${INSTALLER_IP}:~/.ssh/id_rsa ${DOVETAIL_CONFIG}/id_rsa
fi
# sdnvpn test case needs to download this image first before running