From b56d7a191fc695be364430f8428a17591c523403 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 8 Aug 2016 15:46:36 -0700 Subject: 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. --- cloudinit/sources/DataSourceGCE.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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 -- cgit v1.2.3