Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created August 8, 2016 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/428fd8efb769c1efa57597873bc4b7d2 to your computer and use it in GitHub Desktop.
Save harlowja/428fd8efb769c1efa57597873bc4b7d2 to your computer and use it in GitHub Desktop.
diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py
index c660a35..6c12d70 100644
--- a/cloudinit/sources/DataSourceGCE.py
+++ b/cloudinit/sources/DataSourceGCE.py
@@ -31,7 +31,7 @@ REQUIRED_FIELDS = ('instance-id', 'availability-zone', 'local-hostname')
class GoogleMetadataFetcher(object):
- headers = {'X-Google-Metadata-Request': True}
+ headers = {'X-Google-Metadata-Request': 'True'}
def __init__(self, metadata_address):
self.metadata_address = metadata_address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment