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/__init__.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/__init__.py')
-rw-r--r-- | cloudinit/sources/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index c63464b2..82cd3553 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -217,7 +217,7 @@ class DataSource(object): def get_package_mirror_info(self): return self.distro.get_package_mirror_info(data_source=self) - def check_instance_id(self): + def check_instance_id(self, sys_cfg): # quickly (local check only) if self.instance_id is still return False |