diff options
author | Scott Moser <smoser@brickies.net> | 2016-08-23 16:48:40 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-23 16:48:40 -0400 |
commit | 24365490c58df8f0ef2246838c81ec604f0311ac (patch) | |
tree | 3a6e44277256d15bb215cef3c61799397a673e6e /cloudinit/sources/DataSourceAzure.py | |
parent | f16b906c987c7a7948c9adad8f32c1f786ca6569 (diff) | |
parent | 18bf614ca1d9fbabdf83495e7675a2cacaf6c2f4 (diff) | |
download | vyos-cloud-init-24365490c58df8f0ef2246838c81ec604f0311ac.tar.gz vyos-cloud-init-24365490c58df8f0ef2246838c81ec604f0311ac.zip |
merge trunk at 0.7.7~bzr1189
Diffstat (limited to 'cloudinit/sources/DataSourceAzure.py')
-rw-r--r-- | cloudinit/sources/DataSourceAzure.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index 2af0ad9b..698f4cac 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -254,6 +254,10 @@ class DataSourceAzureNet(sources.DataSource): def get_config_obj(self): return self.cfg + 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 count_files(mp): return len(fnmatch.filter(os.listdir(mp), '*[!cdrom]*')) |