diff options
author | Vaidas Jablonskis <jablonskis@gmail.com> | 2014-02-13 22:03:12 +0000 |
---|---|---|
committer | Vaidas Jablonskis <jablonskis@gmail.com> | 2014-02-13 22:03:12 +0000 |
commit | f40bdb4869567124dbc48feaa0574cc83df26e3a (patch) | |
tree | bf1ad6ad35860949587d0dc8fe8aa31c89bdbd15 /tests/unittests | |
parent | 046352fc69e94f4c2f2d209ff5638fc455ff4b97 (diff) | |
download | vyos-cloud-init-f40bdb4869567124dbc48feaa0574cc83df26e3a.tar.gz vyos-cloud-init-f40bdb4869567124dbc48feaa0574cc83df26e3a.zip |
GCE: use dns name instead of IP address
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_datasource/test_gce.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py index 0c58be52..d91bd531 100644 --- a/tests/unittests/test_datasource/test_gce.py +++ b/tests/unittests/test_datasource/test_gce.py @@ -39,7 +39,7 @@ GCE_META_PARTIAL = { } HEADERS = {'X-Google-Metadata-Request': 'True'} -MD_URL_RE = re.compile(r'http://169.254.169.254/computeMetadata/v1/.*') +MD_URL_RE = re.compile(r'http://metadata.google.internal./computeMetadata/v1/.*') def _request_callback(method, uri, headers): @@ -49,7 +49,6 @@ def _request_callback(method, uri, headers): else: path = None if path in GCE_META: - #return (200, headers, GCE_META.get(path)) return (200, headers, GCE_META.get(path)) else: return (404, headers, '') |