Fixed a bug in updating the instance IP on new instance startup
This commit is contained in:
+2
-1
@@ -94,8 +94,9 @@ startInstance() {
|
|||||||
showGaugeBoxForAwsCommand "$desiredState" "Starting Your Instance" "Successfully Started Your Instance!" "Failed to start your instance!"
|
showGaugeBoxForAwsCommand "$desiredState" "Starting Your Instance" "Successfully Started Your Instance!" "Failed to start your instance!"
|
||||||
printInfo "Checking to see if IP changed"
|
printInfo "Checking to see if IP changed"
|
||||||
instanceIp=$(getInstanceIp)
|
instanceIp=$(getInstanceIp)
|
||||||
if [[ $instanceIp != $AWS_TEAM_BUILDING_EC2_INSTANCE_IP ]]; then
|
if [[ $instanceIp != "$AWS_TEAM_BUILDING_EC2_INSTANCE_IP" ]]; then
|
||||||
setConfigValue "AWS_TEAM_BUILDING_EC2_INSTANCE_IP" "$instanceIp"
|
setConfigValue "AWS_TEAM_BUILDING_EC2_INSTANCE_IP" "$instanceIp"
|
||||||
|
export AWS_TEAM_BUILDING_EC2_INSTANCE_IP="$instanceIp"
|
||||||
createDcvConnectionProfileFromTemplate
|
createDcvConnectionProfileFromTemplate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user