2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 18:11:15 +00:00

Fix ProxyConsole if self.remote is not yet set

This commit is contained in:
Jarrod Johnson 2018-07-17 14:44:59 -04:00
parent eac4d97732
commit 73da8ec8b5

View File

@ -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):