summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceCloudSigma.py
diff options
context:
space:
mode:
authorBen Howard <ben.howard@canonical.com>2014-05-27 10:17:18 -0600
committerBen Howard <ben.howard@canonical.com>2014-05-27 10:17:18 -0600
commitf7fa9d2aa9abd81b8f8b79b95bdb1fc0c10b5fe9 (patch)
tree2ab1fb080a13f9f04d2d4de0372d435791a9e1d4 /cloudinit/sources/DataSourceCloudSigma.py
parent2f9b47be819e4aa90d0cfd940557b90cbd6912de (diff)
downloadvyos-cloud-init-f7fa9d2aa9abd81b8f8b79b95bdb1fc0c10b5fe9.tar.gz
vyos-cloud-init-f7fa9d2aa9abd81b8f8b79b95bdb1fc0c10b5fe9.zip
Enable vendordata for CloudSigma (LP: #1303986)
Diffstat (limited to 'cloudinit/sources/DataSourceCloudSigma.py')
-rw-r--r--cloudinit/sources/DataSourceCloudSigma.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceCloudSigma.py b/cloudinit/sources/DataSourceCloudSigma.py
index e1c7e566..ad2a044a 100644
--- a/cloudinit/sources/DataSourceCloudSigma.py
+++ b/cloudinit/sources/DataSourceCloudSigma.py
@@ -66,6 +66,8 @@ class DataSourceCloudSigma(sources.DataSource):
self.userdata_raw = server_meta.get('cloudinit-user-data', "")
if 'cloudinit-user-data' in base64_fields:
self.userdata_raw = b64decode(self.userdata_raw)
+ if 'cloudinit' in server_context.get('vendor_data', {}):
+ self.vendordata_raw = server_context["vendor_data"]["cloudinit"]
self.metadata = server_context
self.ssh_public_key = server_meta['ssh_public_key']