mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-15 22:50:32 +03:00
python 2 compat
This commit is contained in:
parent
086cfe570b
commit
c682665888
@ -43,7 +43,7 @@ class CmdPipe:
|
||||
ret = ret + "(" + " ".join(item['cmd']) + ")"
|
||||
else:
|
||||
#make it copy-pastable, will make a mess of quotes sometimes, but is correct
|
||||
ret = ret + "(" + shlex.join(item['cmd']) + ")"
|
||||
ret = ret + "(" + " ".join(map(shlex.quote,item['cmd'])) + ")"
|
||||
|
||||
return ret
|
||||
|
||||
|
@ -62,7 +62,7 @@ class ExecuteNode(LogStub):
|
||||
|
||||
ret.append(self.ssh_to)
|
||||
|
||||
ret.append(shlex.join(cmd))
|
||||
ret.append(" ".join(map(shlex.quote, cmd)))
|
||||
|
||||
return ret
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user