fix curl region command

pull/694/head
alexsu 2022-02-20 06:55:41 +08:00
parent 79a3f79b27
commit 7a1b07eed4
1 changed files with 1 additions and 2 deletions

View File

@ -63,8 +63,7 @@ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
``` ```
``` ```
REGION=$(curl -s -H "Metadata-Flavor: Google" \ REGION=$(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/zone | cut -d/ -f 4 | sed 's/.\{2\}$//')
http://metadata.google.internal/computeMetadata/v1/project/attributes/google-compute-default-region)
``` ```
``` ```