summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2014-01-09 08:31:52 -0700
committerBen Howard <ben.howard@canonical.com>2014-01-09 08:31:52 -0700
commit9874d0590dba4a67ff7268a6a1d22207088e1a13 (patch)
tree7174b722eaba1ae0b3906bf55b0bca4e0827ef89 /cloudinit
parentdb215c30e7d7e9f9a9ffbe037beb6c92a2312b23 (diff)
downloadvyos-cloud-init-9874d0590dba4a67ff7268a6a1d22207088e1a13.tar.gz
vyos-cloud-init-9874d0590dba4a67ff7268a6a1d22207088e1a13.zip
Added vendordata to SmartOS
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/sources/DataSourceSmartOS.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py
index 551b20c4..ccfee931 100644
--- a/cloudinit/sources/DataSourceSmartOS.py
+++ b/cloudinit/sources/DataSourceSmartOS.py
@@ -47,6 +47,7 @@ SMARTOS_ATTRIB_MAP = {
'iptables_disable': ('iptables_disable', True),
'motd_sys_info': ('motd_sys_info', True),
'availability_zone': ('datacenter_name', True),
+ 'vendordata': ('sdc:operator-script', False),
}
DS_NAME = 'SmartOS'
@@ -154,6 +155,7 @@ class DataSourceSmartOS(sources.DataSource):
self.metadata = util.mergemanydict([md, self.metadata])
self.userdata_raw = ud
+ self.vendordata_raw = vendordata
return True
def device_name_to_device(self, name):