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:
parent
085a9fed37
commit
dbcc33629a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user