summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOVF.py
diff options
context:
space:
mode:
authorJohann Queuniet <jqueuniet@users.noreply.github.com>2020-09-18 18:02:15 +0000
committerGitHub <noreply@github.com>2020-09-18 14:02:15 -0400
commit6b5c306b537aafeded249fc82a3317fba8214508 (patch)
treedd84ba783caca4c5cc76fd8899ada25759a6d65b /cloudinit/sources/DataSourceOVF.py
parent5fc34d81a002f6ca0706f5285ee15b919c3d8d2e (diff)
downloadvyos-cloud-init-6b5c306b537aafeded249fc82a3317fba8214508.tar.gz
vyos-cloud-init-6b5c306b537aafeded249fc82a3317fba8214508.zip
Add vendor-data support to seedfrom parameter for NoCloud and OVF (#570)
Diffstat (limited to 'cloudinit/sources/DataSourceOVF.py')
-rw-r--r--cloudinit/sources/DataSourceOVF.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py
index e53d2eb1..a5ccb8f6 100644
--- a/cloudinit/sources/DataSourceOVF.py
+++ b/cloudinit/sources/DataSourceOVF.py
@@ -73,6 +73,7 @@ class DataSourceOVF(sources.DataSource):
found = []
md = {}
ud = ""
+ vd = ""
vmwareImcConfigFilePath = None
nicspath = None
@@ -304,7 +305,7 @@ class DataSourceOVF(sources.DataSource):
seedfrom, self)
return False
- (md_seed, ud) = util.read_seeded(seedfrom, timeout=None)
+ (md_seed, ud, vd) = util.read_seeded(seedfrom, timeout=None)
LOG.debug("Using seeded cache data from %s", seedfrom)
md = util.mergemanydict([md, md_seed])
@@ -316,6 +317,7 @@ class DataSourceOVF(sources.DataSource):
self.seed = ",".join(found)
self.metadata = md
self.userdata_raw = ud
+ self.vendordata_raw = vd
self.cfg = cfg
return True