summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2021-10-19 02:09:40 +0200
committerGitHub <noreply@github.com>2021-10-18 19:09:40 -0500
commita0a68a24c34ee268962e7a3c3844c59ab4036bf9 (patch)
treeff5620ffc3001af98c446d789f2ad50aa54334a6 /cloudinit/sources
parent70f0ee78ce4926cb79f37e13568deba298321016 (diff)
downloadvyos-cloud-init-a0a68a24c34ee268962e7a3c3844c59ab4036bf9.tar.gz
vyos-cloud-init-a0a68a24c34ee268962e7a3c3844c59ab4036bf9.zip
VMware: read network-config from ISO (#1066)
There is no reason for the ISO missing this functionality. As discussed in https://github.com/canonical/cloud-init/pull/947/files#r707338489
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceOVF.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py
index 08a205f1..5257a534 100644
--- a/cloudinit/sources/DataSourceOVF.py
+++ b/cloudinit/sources/DataSourceOVF.py
@@ -360,8 +360,7 @@ class DataSourceOVF(sources.DataSource):
if contents:
break
if contents:
- read_network = ('com.vmware.guestInfo' == name)
- (md, ud, cfg) = read_ovf_environment(contents, read_network)
+ (md, ud, cfg) = read_ovf_environment(contents, True)
self.environment = contents
if 'network-config' in md and md['network-config']:
self._network_config = md['network-config']