2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 19:57:50 +00:00

Fix key name

This commit is contained in:
Jarrod Johnson 2022-07-27 12:08:58 -04:00
parent 35701cdf01
commit 6b95bc7932

View File

@ -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)