summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOpenStack.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-22 03:29:49 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-22 03:29:49 -0400
commit9e05dd2d21f3db77607f1e4aa53a4657514a4fce (patch)
tree247f8049b34d8d5fb0dc05cd78be8bbb1db91327 /cloudinit/sources/DataSourceOpenStack.py
parent3a3f960d5cfee60766e7de9e1fced537cac72106 (diff)
parent6ce134c1868478345471ba9166f1523f7d9bf19d (diff)
downloadvyos-cloud-init-9e05dd2d21f3db77607f1e4aa53a4657514a4fce.tar.gz
vyos-cloud-init-9e05dd2d21f3db77607f1e4aa53a4657514a4fce.zip
merge from trunk.net1
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..79bb9d63 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):
+ # 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)