From 47cea194322dbbf1d795aae3411ffe52d8712735 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 6 Jun 2017 10:04:02 +0200 Subject: [PATCH] migrate: don't include the hostname in rsync's rsh command --- PVE/Storage.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index a143b5f..2d6c43d 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -543,7 +543,8 @@ sub storage_migrate { my $errstr = "unable to migrate '$volid' to '${target_volid}' on host '$target_sshinfo->{name}'"; my $ssh = PVE::Cluster::ssh_info_to_command($target_sshinfo); - local $ENV{RSYNC_RSH} = PVE::Tools::cmd2string($ssh); + my $ssh_base = PVE::Cluster::ssh_info_to_command_base($target_sshinfo); + local $ENV{RSYNC_RSH} = PVE::Tools::cmd2string($ssh_base); my $no_incremental = sub { my ($type) = @_; -- 2.39.2