2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-14 01:02:40 +00:00

Correct scope of ipmethod

ipmethod was trying to be set outside the useful scope.
This commit is contained in:
Jarrod Johnson 2020-08-03 12:01:40 -04:00
parent 704e8379f0
commit 8fca5d23c0

View File

@ -190,10 +190,10 @@ def get_nic_config(configmanager, node, ip=None, mac=None, ifidx=None,
candsrvs = []
for net in nets:
net, prefix, svrip = net
ipmethod = cfgbyname[candidate].get('ipv4_method', 'static')
candsrvs.append(svrip)
cfgdata['deploy_server'] = svrip
for candidate in cfgbyname:
ipmethod = cfgbyname[candidate].get('ipv4_method', 'static')
if ipmethod == 'dhcp':
dhcprequested = True
continue