2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Prevent unitiailized collective info

When doing proxyconsole, don't land in a useless retach
loop when managerinfo is None.
This commit is contained in:
Jarrod Johnson 2023-12-07 14:44:42 -05:00
parent 93269a05eb
commit 85629dea64

View File

@ -622,6 +622,8 @@ def connect_node(node, configmanager, username=None, direct=True, width=80,
myname = collective.get_myname()
if myc and myc != collective.get_myname() and direct:
minfo = configmodule.get_collective_member(myc)
if not minfo:
raise Exception('Unable to get collective member for {}'.format(node))
return ProxyConsole(node, minfo, myname, configmanager, username,
width, height)
consk = (node, configmanager.tenant)