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

Fix incorrect output on disconnect for cli mode

The '.' command would fail to exit the function, causing the 'help' output to occur.
Fix this by having the '.' command processed in the same manner as the rest.
This commit is contained in:
Jarrod Johnson 2014-07-01 12:57:14 -04:00
parent 1d635add9e
commit 426eeb209f
2 changed files with 3 additions and 4 deletions

5
TODO
View File

@ -48,6 +48,5 @@ Traceback (most recent call last):
File "/usr/bin/confetty", line 211, in print_result
for key in res.iterkeys():
AttributeError: 'str' object has no attribute 'iterkeys'
[root@odin ~]# confetty
/ -> cd /nodes/n3
-try to get 'health' without trailing /
-/detected/ collection
-SLP snooping: snoop for srvrequests, likel

View File

@ -456,7 +456,7 @@ def conserver_command(filehandle, command):
if command[0] == '.':
print("disconnect]\r")
quitconfetty(fullexit=consoleonly)
if command[0] == 'b':
elif command[0] == 'b':
tlvdata.send(session.connection, {'operation': 'break',
'path': currconsole})
print("break sent]\r")