summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-05-30 14:33:02 -0400
committerScott Moser <smoser@ubuntu.com>2014-05-30 14:33:02 -0400
commite0650257e1ef728304a0c7230c0a2d2710a8ac5f (patch)
tree0123a44aedc7007abb9d222e1d6f2006c88c89f5 /cloudinit/sources
parent910128e61aa3244e254d9c9c803436a5b9aef93c (diff)
parentf7fa9d2aa9abd81b8f8b79b95bdb1fc0c10b5fe9 (diff)
downloadvyos-cloud-init-e0650257e1ef728304a0c7230c0a2d2710a8ac5f.tar.gz
vyos-cloud-init-e0650257e1ef728304a0c7230c0a2d2710a8ac5f.zip
add vendordata support to cloudsigma datasource
LP: #1303986
Diffstat (limited to 'cloudinit/sources')
-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']