]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
migrate: don't include the hostname in rsync's rsh command
[pve-storage.git] / PVE / Storage.pm
index a143b5fd932013fa6e05db94b4d07001f17c84bf..2d6c43d923001bfad6176a70d5ff140cc4bad991 100755 (executable)
@@ -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) = @_;