summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-15 21:12:29 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-15 21:12:29 -0400
commit14271e89f3a2a6a813fc5aac7163da3defcfd4c1 (patch)
treefd1f713ccbe1c8078c1347fad2ce0bd0fac6ec0b
parent333130a7ac9df5e698d82dec2cb6e8e44ba1432b (diff)
parent8311e8f7a2d4ad782015c0eb4d22efd0c5a8af0f (diff)
downloadvyos-cloud-init-14271e89f3a2a6a813fc5aac7163da3defcfd4c1.tar.gz
vyos-cloud-init-14271e89f3a2a6a813fc5aac7163da3defcfd4c1.zip
merge with trunk
-rw-r--r--ChangeLog1
-rw-r--r--[-rwxr-xr-x]cloudinit/cmd/main.py0
-rw-r--r--cloudinit/sources/DataSourceGCE.py2
-rw-r--r--tests/unittests/test_datasource/test_gce.py2
4 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e2869522..66539792 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -122,6 +122,7 @@
- ConfigDrive: improved support for networking information from
a network_data.json or older interfaces formated network_config.
- Change missing Cheetah log warning to debug [Andrew Jorgensen]
+ - Remove trailing dot from GCE metadata URL (LP: #1581200) [Phil Roche]
0.7.6:
- open 0.7.6
diff --git a/cloudinit/cmd/main.py b/cloudinit/cmd/main.py
index 63621c1d..63621c1d 100755..100644
--- a/cloudinit/cmd/main.py
+++ b/cloudinit/cmd/main.py
diff --git a/cloudinit/sources/DataSourceGCE.py b/cloudinit/sources/DataSourceGCE.py
index 9234d1f8..c660a350 100644
--- a/cloudinit/sources/DataSourceGCE.py
+++ b/cloudinit/sources/DataSourceGCE.py
@@ -25,7 +25,7 @@ from cloudinit import util
LOG = logging.getLogger(__name__)
BUILTIN_DS_CONFIG = {
- 'metadata_url': 'http://metadata.google.internal./computeMetadata/v1/'
+ 'metadata_url': 'http://metadata.google.internal/computeMetadata/v1/'
}
REQUIRED_FIELDS = ('instance-id', 'availability-zone', 'local-hostname')
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):