From: Lucia Guevgeozian Odizzio Date: Thu, 6 Mar 2014 13:26:48 +0000 (+0100) Subject: Fix to sshfunc, map args to string X-Git-Tag: nepi-3.1.0~109 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=735a0b4a78ceea50e6c972693d292b711f9147b3;p=nepi.git Fix to sshfunc, map args to string --- diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index ac43099b..e8ff2130 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -283,8 +283,8 @@ def rexec(command, host, user, command = "sudo " + command args.append(command) - - log_msg = " rexec - host %s - command %s " % (host, " ".join(args)) + + log_msg = " rexec - host %s - command %s " % (str(host), " ".join(map(str, args))) stdout = stderr = stdin = subprocess.PIPE if forward_x11: @@ -383,7 +383,7 @@ def rcopy(source, dest, else: args.append(dest) - log_msg = " rcopy - host %s - command %s " % (host, " ".join(args)) + log_msg = " rcopy - host %s - command %s " % (str(host), " ".join(map(str, args))) return _retry_rexec(args, log_msg, env = None, retry = retry, tmp_known_hosts = tmp_known_hosts,