From 85629dea64d202c02a5f99191b4535b7743a1e03 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 7 Dec 2023 14:44:42 -0500 Subject: [PATCH] Prevent unitiailized collective info When doing proxyconsole, don't land in a useless retach loop when managerinfo is None. --- confluent_server/confluent/consoleserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/consoleserver.py b/confluent_server/confluent/consoleserver.py index 37274792..fb607a27 100644 --- a/confluent_server/confluent/consoleserver.py +++ b/confluent_server/confluent/consoleserver.py @@ -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)