summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceGCE.py
diff options
context:
space:
mode:
authorJoshua Harlow <jxharlow@godaddy.com>2016-08-08 15:46:36 -0700
committerJoshua Harlow <jxharlow@godaddy.com>2016-08-08 15:57:12 -0700
commitb56d7a191fc695be364430f8428a17591c523403 (patch)
treef8f6f26a5e8dbee24605814424f291bf53aa952d /cloudinit/sources/DataSourceGCE.py
parent48ec60ae19c749223cb58dcbdbf0ecb7343f2a31 (diff)
downloadvyos-cloud-init-b56d7a191fc695be364430f8428a17591c523403.tar.gz
vyos-cloud-init-b56d7a191fc695be364430f8428a17591c523403.zip
Newer requests have strong type validation
Only use strings in headers, as newer requests actually do stricter validation of this, so ensure that we comply by only having string objects in header dicts.
Diffstat (limited to 'cloudinit/sources/DataSourceGCE.py')
-rw-r--r--cloudinit/sources/DataSourceGCE.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py
index c660a350..6c12d703 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