From 6b95bc79326fd2112ad76b570e52cea0f38d9b15 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 27 Jul 2022 12:08:58 -0400 Subject: [PATCH] Fix key name --- .../esxi7/profiles/hypervisor/scripts/makeksnet | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet index fa05c9c6..371c1e45 100644 --- a/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet +++ b/confluent_osdeploy/esxi7/profiles/hypervisor/scripts/makeksnet @@ -36,7 +36,7 @@ for info in vswinfo.split('\n'): try: with open('/tmp/confluentident/cnflnt.yml') as identin: identcfg = yaml.safe_load(identin) - ncfg = identcfg['netcfgs'][0] + ncfg = identcfg['net_cfgs'][0] cfg['ipv4_method'] = ncfg['ipv4_method'] cfg['ipv4_address'] = ncfg['ipv4_address'].split('/')[0] cfg['ipv4_netmask'] = ncfg['ipv4_netmask'] @@ -52,5 +52,4 @@ if cfg['ipv4_method'] == 'static': netline += ' --gateway={0}'.format(cfg['ipv4_gateway']) if cfg['nameservers']: netline += ' --nameserver={0}'.format(cfg['nameservers']) -print(netline) - +print(netline) \ No newline at end of file