From 73da8ec8b5840a514fa9f498a821824ff729afa2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 17 Jul 2018 14:44:59 -0400 Subject: [PATCH] Fix ProxyConsole if self.remote is not yet set --- confluent_server/confluent/consoleserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/consoleserver.py b/confluent_server/confluent/consoleserver.py index 2bcea8d9..a103bb4d 100644 --- a/confluent_server/confluent/consoleserver.py +++ b/confluent_server/confluent/consoleserver.py @@ -646,6 +646,7 @@ class ProxyConsole(object): self.cfm = configmanager self.node = node self.user = user + self.remote = None self.clisession = None self._attribwatcher = configmanager.watch_attributes( (self.node,), self._genwatchattribs, self._attribschanged) @@ -704,7 +705,8 @@ class ProxyConsole(object): def detachsession(self, session): # we will disappear, so just let that happen... - tlvdata.send(self.remote, {'operation': 'stop'}) + if self.remote: + tlvdata.send(self.remote, {'operation': 'stop'}) self.clisession = None def send_break(self):