summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOpenStack.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-24 12:51:31 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-24 12:51:31 -0400
commiteb8b2f0e7b777b756a4965ea784ce1354b5c6396 (patch)
tree119315fc45eedbd454e091b6e5d21646df8cef90 /cloudinit/sources/DataSourceOpenStack.py
parent5b3cad36be8981cd12cffdf5c5e539b522404000 (diff)
downloadvyos-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/DataSourceOpenStack.py')
-rw-r--r--cloudinit/sources/DataSourceOpenStack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOpenStack.py b/cloudinit/sources/DataSourceOpenStack.py
index 79bb9d63..f7f4590b 100644
--- a/cloudinit/sources/DataSourceOpenStack.py
+++ b/cloudinit/sources/DataSourceOpenStack.py
@@ -150,7 +150,7 @@ class DataSourceOpenStack(openstack.SourceMixin, sources.DataSource):
return True
- 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())