|
@@ -326,7 +326,7 @@ class TestSSHVendor(object):
|
|
|
def run_command(host, command, username=None, port=None):
|
|
|
cmd, path = command
|
|
|
cmd = cmd.split(b'-', 1)
|
|
|
- path = path.replace("'", "")
|
|
|
+ path = path.replace(b"'", b"")
|
|
|
p = subprocess.Popen(cmd + [path], bufsize=0, env=get_safe_env(), stdin=subprocess.PIPE,
|
|
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
return client.SubprocessWrapper(p)
|