From b446d05e89335e691cabf659e52d90dca0ed68e1 Mon Sep 17 00:00:00 2001 From: Kevin Regan Date: Fri, 26 Feb 2016 15:14:55 -0800 Subject: [PATCH] Deprecate X-Google-Metadata-Request in favor new Metadata-Flavor header We are deprecating the use of the X-Google-Metadata-Request header in favor of the latest header, Metadata-Flavor. The transition is explained here: https://cloud.google.com/compute/docs/metadata#transitioning --- compute/api/startup-script.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compute/api/startup-script.sh b/compute/api/startup-script.sh index b0afa8266b9..1a41839a1d1 100644 --- a/compute/api/startup-script.sh +++ b/compute/api/startup-script.sh @@ -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