mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-14 19:57:50 +00:00
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.
This commit is contained in:
parent
4443d67da6
commit
cf6c32b055
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user