diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-24 12:51:31 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-24 12:51:31 -0400 |
commit | eb8b2f0e7b777b756a4965ea784ce1354b5c6396 (patch) | |
tree | 119315fc45eedbd454e091b6e5d21646df8cef90 /cloudinit/sources/DataSourceAzure.py | |
parent | 5b3cad36be8981cd12cffdf5c5e539b522404000 (diff) | |
download | vyos-cloud-init-eb8b2f0e7b777b756a4965ea784ce1354b5c6396.tar.gz vyos-cloud-init-eb8b2f0e7b777b756a4965ea784ce1354b5c6396.zip |
provide datasource.check_instance_id with access to system config
Changing this interface to allow for easy change later.
The thing that this will enable is:
a.) maas datasource to look at the system config and see if it
is configured with the same consumer_key
b.) datasource config could allow setting a variable that it
would look at.
Diffstat (limited to 'cloudinit/sources/DataSourceAzure.py')
-rw-r--r-- | cloudinit/sources/DataSourceAzure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index 832b3063..698f4cac 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -254,7 +254,7 @@ class DataSourceAzureNet(sources.DataSource): def get_config_obj(self): return self.cfg - def check_instance_id(self): + 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()) |