diff options
author | Wesley Wiedenmeier <wesley.wiedenmeier@gmail.com> | 2016-03-21 23:56:23 -0500 |
---|---|---|
committer | Wesley Wiedenmeier <wesley.wiedenmeier@gmail.com> | 2016-03-21 23:56:23 -0500 |
commit | 6082a5b0c2b1a52ddbf63bfd80331f28f8cdc4fa (patch) | |
tree | d42a72aad62a96870ad36dca8f7d85ce09582311 /cloudinit/sources/DataSourceOpenStack.py | |
parent | bb9cb8df25eaeca8740f5e1bcbc9cd2feafcba24 (diff) | |
parent | 4f2065ad569355d5d0bc54176bde6b8e55047341 (diff) | |
download | vyos-cloud-init-6082a5b0c2b1a52ddbf63bfd80331f28f8cdc4fa.tar.gz vyos-cloud-init-6082a5b0c2b1a52ddbf63bfd80331f28f8cdc4fa.zip |
Merge from trunk
Diffstat (limited to 'cloudinit/sources/DataSourceOpenStack.py')
-rw-r--r-- | cloudinit/sources/DataSourceOpenStack.py | 4 |
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) |