summaryrefslogtreecommitdiff
path: root/cloudinit/DataSource.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-25 17:37:43 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-25 17:37:43 -0500
commit8edefffea218862e6edbc78830159a272e6ffc0d (patch)
treec9d21bf403b929e844a0038d2d326210e6bc8e45 /cloudinit/DataSource.py
parent7d89aaeab6efeda1c4b061c59c7b62afb46be70b (diff)
downloadvyos-cloud-init-8edefffea218862e6edbc78830159a272e6ffc0d.tar.gz
vyos-cloud-init-8edefffea218862e6edbc78830159a272e6ffc0d.zip
add get_config_obj to a DataSource object.
This will allow for a DataSource to provide its own config that will then be utilized as part of CloudConfig. [to be used in OVF]
Diffstat (limited to 'cloudinit/DataSource.py')
-rw-r--r--cloudinit/DataSource.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py
index d1458ffd..316eb5ae 100644
--- a/cloudinit/DataSource.py
+++ b/cloudinit/DataSource.py
@@ -35,6 +35,13 @@ class DataSource:
def get_userdata_raw(self):
return(self.userdata_raw)
+
+ # the data sources' config_obj is a cloud-config formated
+ # object that came to it from ways other than cloud-config
+ # because cloud-config content would be handled elsewhere
+ def get_config_obj(self):
+ return({ })
+
def get_public_ssh_keys(self):
keys = []
if not self.metadata.has_key('public-keys'): return([])