Skip to content

Commit

Permalink
Merge pull request #62 from GoogleCloudPlatform/dylanmpeck-fix-ingress
Browse files Browse the repository at this point in the history
update conditional for static IP creation
  • Loading branch information
rosera authored May 17, 2022
2 parents 561b9e4 + 8c52a2a commit b9642cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ run_terraform() {

generate_static_ip() {
# Check to make sure static IP hasn't already been created, then register it.
if [[ $(gcloud compute addresses list | grep 'prime-server') = '' ]]; then
if [[ $(gcloud compute addresses list | grep '^NAME:\sprime-server') = '' ]]; then
gcloud compute addresses create prime-server --global
fi
}
Expand Down

0 comments on commit b9642cb

Please sign in to comment.