From cf6c32b0557329d325f1a5e71279cf6799e7b179 Mon Sep 17 00:00:00 2001 From: Jarrod Johnon Date: Mon, 6 Oct 2014 15:52:06 -0400 Subject: [PATCH] Exit on console-only execution if an error is encountered If console can not be established (e.g. the node doesn't exist), confetty would drop to interactive. Address by exiting if the path falls that way. --- confluent_client/bin/confetty | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 351c578e..c11929c6 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -545,6 +545,7 @@ pendingcommand = "" if len(shellargs) == 1 and ' ' not in shellargs[0]: # straight to node console consoleonly = True do_command("start /nodes/%s/console/session" % shellargs[0], netserver) + doexit = True elif shellargs: command = " ".join(shellargs) do_command(command, netserver)