From 21c0372a5b7e083937ef049c09e5123b584e0db6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 7 Mar 2022 15:28:04 -0500 Subject: [PATCH] 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. --- confluent_server/confluent/netutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/netutil.py b/confluent_server/confluent/netutil.py index 3339bf21..41138e4c 100644 --- a/confluent_server/confluent/netutil.py +++ b/confluent_server/confluent/netutil.py @@ -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)