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