2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Fix netcfg self api call

This commit is contained in:
Jarrod Johnson 2021-10-28 15:47:07 -04:00
parent 6f967a3afa
commit 5b128238e7

View File

@ -114,6 +114,7 @@ def handle_request(env, start_response):
myip = myip.split(']', 1)[0]
else:
myip = myip.split(':', 1)[0]
myip = myip.replace('[', '').replace(']', '')
ncfg = netutil.get_full_net_config(cfg, nodename, myip)
start_response('200 OK', (('Content-Type', retype),))
yield dumper(ncfg)