Escape dataset verify command

This commit is contained in:
Marius van Witzenburg 2017-07-05 12:15:08 +02:00
parent 748e6d4739
commit 6b5edab09d

@ -288,7 +288,9 @@ def zfs_transfer(ssh_source, source_filesystem, first_snapshot, second_snapshot,
raise(subprocess.CalledProcessError(target_proc.returncode, target_cmd))
debug("Verifying if snapshot exists on target")
run(ssh_to=ssh_target, cmd=["zfs", "list", target_filesystem+"@"+second_snapshot ])
run(ssh_to=ssh_target, input=target_filesystem+"@"+second_snapshot + "\0", cmd=
[ "xargs", "-0", "-n", "1", "zfs", "list" ]
)