diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-08-08 15:46:36 -0700 |
---|---|---|
committer | Joshua Harlow <jxharlow@godaddy.com> | 2016-08-08 15:57:12 -0700 |
commit | b56d7a191fc695be364430f8428a17591c523403 (patch) | |
tree | f8f6f26a5e8dbee24605814424f291bf53aa952d /cloudinit | |
parent | 48ec60ae19c749223cb58dcbdbf0ecb7343f2a31 (diff) | |
download | vyos-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')
-rw-r--r-- | cloudinit/sources/DataSourceGCE.py | 2 |
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 |