summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2014-01-16 16:32:57 -0700
committerBen Howard <ben.howard@canonical.com>2014-01-16 16:32:57 -0700
commitb94c9790e055960fccf3b159d86db85ef37fb34f (patch)
treeb3b74c5a7e487bfe39f9abaed7971e8e3508da0a
parent8209b21fc29c7d8585b8925a4deb929639797f9b (diff)
downloadvyos-cloud-init-b94c9790e055960fccf3b159d86db85ef37fb34f.tar.gz
vyos-cloud-init-b94c9790e055960fccf3b159d86db85ef37fb34f.zip
Fixed typos
-rw-r--r--cloudinit/sources/DataSourceSmartOS.py2
-rw-r--r--cloudinit/sources/__init__.py2
-rw-r--r--cloudinit/stages.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py
index ccfee931..6593ce6e 100644
--- a/cloudinit/sources/DataSourceSmartOS.py
+++ b/cloudinit/sources/DataSourceSmartOS.py
@@ -155,7 +155,7 @@ class DataSourceSmartOS(sources.DataSource):
self.metadata = util.mergemanydict([md, self.metadata])
self.userdata_raw = ud
- self.vendordata_raw = vendordata
+ self.vendordata_raw = md['vendordata']
return True
def device_name_to_device(self, name):
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py
index 7e11c1ca..4b3bf62f 100644
--- a/cloudinit/sources/__init__.py
+++ b/cloudinit/sources/__init__.py
@@ -82,7 +82,7 @@ class DataSource(object):
return self._filter_xdata(self.userdata)
return self.userdata
- def get_vendordata(self)
+ def get_vendordata(self):
if self.vendordata is None:
self.vendordata = self.ud_proc.process(self.get_vendordata_raw())
return self.vendordata
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 19fbe706..5dced998 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -514,8 +514,8 @@ class Init(object):
LOG.debug("vendordata consumption is disabled.")
return
- enabled = vdc.get('enabled')
- no_handlers = vdc.get('disabled_handlers', None)
+ enabled = vdcfg.get('enabled')
+ no_handlers = vdcfg.get('disabled_handlers', None)
LOG.debug("vendor data will be consumed. disabled_handlers=%s",
no_handlers)