2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 04:07:51 +00:00

Support get_full_net_config without serverip

When trying to get a configuration
without a network context, it would fail.

Now, as intended, it generates network configuration without autosense in such a case.
This commit is contained in:
Jarrod Johnson 2022-03-07 15:28:04 -05:00
parent 98d8aaffe8
commit 21c0372a5b

View File

@ -294,7 +294,7 @@ def get_full_net_config(configmanager, node, serverip=None):
if iface not in attribs:
attribs[iface] = {}
attribs[iface][attrib] = val
myaddrs = None
myaddrs = []
if serverip:
myaddrs = get_addresses_by_serverip(serverip)
nm = NetManager(myaddrs, node, configmanager)