2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix nodeshell overeager parsing

In the case of execing to ssh, preserve literal argumants since
ssh is going to parse them.  Pre-parsing will cause ssh to strip out spaces, for example.
This commit is contained in:
Jarrod Johnson 2017-08-03 08:33:29 -04:00
parent 085a9fed37
commit dbcc33629a

View File

@ -19,7 +19,6 @@ from collections import deque
import optparse
import os
import select
import shlex
import signal
import subprocess
import sys
@ -62,7 +61,7 @@ def run():
ex = exp['databynode']
for node in ex:
cmd = ex[node]['value'].encode('utf-8')
cmdv = ['ssh', node] + shlex.split(cmd)
cmdv = ['ssh', node, cmd]
if currprocs < concurrentprocs:
currprocs += 1
run_cmdv(node, cmdv, all, pipedesc)