Fix an incorrect key path on copying logs
Magnum SSH into each bay node and copy logs when a test fails. The specified SSH key path is relative to the home directory ("~"), which didn't get expanded correctly. Change-Id: Ie7265adf8027309a4482247283dd52a18397d5d7 Closes-Bug: #1566501
This commit is contained in:
parent
9f5c025638
commit
7e651b8927
@ -27,7 +27,7 @@ PRIVATE_KEY=
|
||||
|
||||
echo "If private key is specified, save to temp and use that; else, use default"
|
||||
if [[ "$KEYPAIR" == "default" ]]; then
|
||||
PRIVATE_KEY="~/.ssh/id_rsa"
|
||||
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa)
|
||||
else
|
||||
PRIVATE_KEY="$(mktemp id_rsa.$SSH_IP.XXX)"
|
||||
echo -en "$KEYPAIR" > $PRIVATE_KEY
|
||||
|
Loading…
Reference in New Issue
Block a user