From 3fc39531f45275b4259c7a8068c9ea2a2b33f4f7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 10 Feb 2014 09:50:17 -0500 Subject: [PATCH] If a node is specified on the CLI, go straight to console --- bin/confetty | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/confetty b/bin/confetty index 18f09e75..2198622c 100755 --- a/bin/confetty +++ b/bin/confetty @@ -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: