Skip to content

Commit 154eda5

Browse files
committed
Change variables to local scope in utils.sh
1 parent e0ea637 commit 154eda5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ get_openstack_option_value () {
138138
}
139139

140140
configure_ssh_pubkey_auth () {
141-
USERNAME=$1
142-
HOST=$2
143-
SSH_KEY_FILE_PUB=$3
144-
PASSWORD=$4
141+
local USERNAME=$1
142+
local HOST=$2
143+
local SSH_KEY_FILE_PUB=$3
144+
local PASSWORD=$4
145145

146-
MAX_WAIT_SECONDS=300
146+
local MAX_WAIT_SECONDS=300
147147

148-
PUBKEYFILE=`mktemp -u /tmp/ssh_key_pub.XXXXXX`
148+
local PUBKEYFILE=`mktemp -u /tmp/ssh_key_pub.XXXXXX`
149149

150150
ssh-keygen -R $HOST
151151

0 commit comments

Comments
 (0)