[pve-devel] [PATCH storage 2/3] migrate: don't include the hostname in rsync's rsh command

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jun 6 10:04:02 CEST 2017


---
Requires: [PATCH cluster] add sshinfo_to_command_base

 PVE/Storage.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 04682bb..5f6650d 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -544,7 +544,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.11.0





More information about the pve-devel mailing list