mirror of
https://github.com/xcat2/confluent.git
synced 2026-01-11 18:42:29 +00:00
Treat '' as equivalent to unset for ipv{}_method
Since it's a really difficult distiction between blank and unset, make sure this is treated the same.
This commit is contained in:
@@ -575,6 +575,8 @@ def get_nic_config(configmanager, node, ip=None, mac=None, ifidx=None,
|
||||
cfgdata[srvkey] = socket.inet_ntop(fam, svrip)
|
||||
for candidate in cfgbyname:
|
||||
ipmethod = cfgbyname[candidate].get('ipv{}_method'.format(nver), 'static')
|
||||
if not ipmethod:
|
||||
ipmethod = 'static'
|
||||
if ipmethod == 'dhcp':
|
||||
dhcprequested = True
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user