From 8edefffea218862e6edbc78830159a272e6ffc0d Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 25 Jan 2011 17:37:43 -0500 Subject: 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] --- cloudinit/DataSource.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cloudinit/DataSource.py') 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([]) -- cgit v1.2.3