summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOpenStack.py
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-08-23 16:48:40 -0400
committerScott Moser <smoser@brickies.net>2016-08-23 16:48:40 -0400
commit24365490c58df8f0ef2246838c81ec604f0311ac (patch)
tree3a6e44277256d15bb215cef3c61799397a673e6e /cloudinit/sources/DataSourceOpenStack.py
parentf16b906c987c7a7948c9adad8f32c1f786ca6569 (diff)
parent18bf614ca1d9fbabdf83495e7675a2cacaf6c2f4 (diff)
downloadvyos-cloud-init-24365490c58df8f0ef2246838c81ec604f0311ac.tar.gz
vyos-cloud-init-24365490c58df8f0ef2246838c81ec604f0311ac.zip
merge trunk at 0.7.7~bzr1189
Diffstat (limited to 'cloudinit/sources/DataSourceOpenStack.py')
-rw-r--r--cloudinit/sources/DataSourceOpenStack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceOpenStack.py b/cloudinit/sources/DataSourceOpenStack.py
index 469c2e2a..f7f4590b 100644
--- a/cloudinit/sources/DataSourceOpenStack.py
+++ b/cloudinit/sources/DataSourceOpenStack.py
@@ -150,6 +150,10 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
return True
+ def check_instance_id(self, sys_cfg):
+ # quickly (local check only) if self.instance_id is still valid
+ return sources.instance_id_matches_system_uuid(self.get_instance_id())
+
def read_metadata_service(base_url, ssl_details=None):
reader = openstack.MetadataReader(base_url, ssl_details=ssl_details)