Skip to content

Commit

Permalink
Merge pull request #208 from Galabar001/master
Browse files Browse the repository at this point in the history
Deprecate X-Google-Metadata-Request in favor new Metadata-Flavor header
  • Loading branch information
Jon Wayne Parrott committed Feb 26, 2016
2 parents b094eae + b446d05 commit e685198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compute/api/startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ apt-get -y install imagemagick
# Use the metadata server to get the configuration specified during
# instance creation. Read more about metadata here:
# https://cloud.google.com/compute/docs/metadata#querying
IMAGE_URL=$(curl http://metadata/computeMetadata/v1/instance/attributes/url -H "X-Google-Metadata-Request: True")
TEXT=$(curl http://metadata/computeMetadata/v1/instance/attributes/text -H "X-Google-Metadata-Request: True")
CS_BUCKET=$(curl http://metadata/computeMetadata/v1/instance/attributes/bucket -H "X-Google-Metadata-Request: True")
IMAGE_URL=$(curl http://metadata/computeMetadata/v1/instance/attributes/url -H "Metadata-Flavor: Google")
TEXT=$(curl http://metadata/computeMetadata/v1/instance/attributes/text -H "Metadata-Flavor: Google")
CS_BUCKET=$(curl http://metadata/computeMetadata/v1/instance/attributes/bucket -H "Metadata-Flavor: Google")

mkdir image-output
cd image-output
Expand Down

0 comments on commit e685198

Please sign in to comment.