File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ checkKeyName() {
16
16
for key in " ${keyPairs[@]} "
17
17
do
18
18
if [ " $key " == " $keyname " ]; then
19
- echo " Error: Key Pair '$key ' matches the specified keyName ' $keyName '. Exiting..."
19
+ echo " Error: Key Pair '$key ' matches the specified key name ' $keyname '. Exiting..."
20
20
exit 1
21
21
fi
22
22
done
@@ -161,14 +161,14 @@ function up {
161
161
162
162
checkKeyName
163
163
164
- keyName =$( importSshKey | getValueByKeyword KeyName )
164
+ importedKeyName =$( importSshKey | getValueByKeyword KeyName )
165
165
166
- if [ -z $keyName ]
166
+ if [ -z $importedKeyName ]
167
167
then
168
168
exit 1
169
169
fi
170
170
171
- echo " Success to add ssh key: $keyName "
171
+ echo " Success to add ssh key: $importedKeyName "
172
172
173
173
createSecurityGroups
174
174
echo " Add security group"
@@ -191,5 +191,5 @@ function up {
191
191
192
192
openSSHTunnel $instanceName $publicIp $portConfigArray
193
193
194
- storeConfigIntoTreehousesConfigAsStringfiedJson $instanceName $keyName $instanceId $publicIp $groupName
194
+ storeConfigIntoTreehousesConfigAsStringfiedJson $instanceName $importedKeyName $instanceId $publicIp $groupName
195
195
}
You can’t perform that action at this time.
0 commit comments