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

If a node is specified on the CLI, go straight to console

This commit is contained in:
Jarrod Johnson 2014-02-10 09:50:17 -05:00
parent 0985a717cd
commit 3fc39531f4

View File

@ -248,7 +248,10 @@ while authinfo['authpassed'] != 1:
doexit = False
inconsole = False
pendingcommand = ""
prompt()
if len(args) == 1: # a node name, go straight to trying to console
do_command("start /node/%s/console/session" % args[0], server)
else:
prompt()
while not doexit:
rdylist, _, _ = select.select((sys.stdin, server), (), (), 60)
for fh in rdylist: