From 942685b48dbd14345a34e4c171b2a50d6e365731 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 3 Jun 2020 14:58:30 -0400 Subject: [PATCH] Amend confetty fix shlex.join is not widely available, switch to just skipping the split if pre-split by the calling process. --- confluent_client/bin/confetty | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index c5bbb519..7a54afcc 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -292,6 +292,8 @@ def rcompleter(text, state): def parse_command(command): + if isinstance(command, list): + return command try: args = shlex.split(command, posix=True) except ValueError as ve: @@ -912,8 +914,7 @@ def main(): do_command("start /nodes/%s/console/session" % session_node, netserver) doexit = True elif shellargs: - command = shlex.join(shellargs) - do_command(command, netserver) + do_command(shellargs, netserver) quitconfetty(fullexit=True, fixterm=False) powerstate = None