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:
parent
704e8379f0
commit
8fca5d23c0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user