summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2016-06-15 10:31:44 +0100
committerDaniel Watkins <daniel.watkins@canonical.com>2016-06-15 10:31:44 +0100
commit946b0f5542ffb43149f60b5dd50b2fb450d23713 (patch)
tree686e8c04b6b2491c7adab3433c3190240d2700fa /tests/unittests/test_datasource
parent632d56a23a947a23e18fa234d675e34a1a119593 (diff)
downloadvyos-cloud-init-946b0f5542ffb43149f60b5dd50b2fb450d23713.tar.gz
vyos-cloud-init-946b0f5542ffb43149f60b5dd50b2fb450d23713.zip
Re-apply "Remove trailing dot from GCE metadata URL (LP: #1581200) [Phil Roche]"
This commit includes the content of that commit, plus a fix for the tests (provided by Phil).
Diffstat (limited to 'tests/unittests/test_datasource')
-rw-r--r--tests/unittests/test_datasource/test_gce.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py
index 1f7eb99e..6e62a4d2 100644
--- a/tests/unittests/test_datasource/test_gce.py
+++ b/tests/unittests/test_datasource/test_gce.py
@@ -52,7 +52,7 @@ GCE_META_ENCODING = {
HEADERS = {'X-Google-Metadata-Request': 'True'}
MD_URL_RE = re.compile(
- r'http://metadata.google.internal./computeMetadata/v1/.*')
+ r'http://metadata.google.internal/computeMetadata/v1/.*')
def _set_mock_metadata(gce_meta=None):