[pve-devel] [PATCH] Remove $vmid form ssh prepare and finalize command.

Wolfgang Link w.link at proxmox.com
Wed Jun 7 13:47:57 CEST 2017


---
 PVE/Replication.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Replication.pm b/PVE/Replication.pm
index 37642f57..e0cf02f0 100644
--- a/PVE/Replication.pm
+++ b/PVE/Replication.pm
@@ -116,7 +116,7 @@ sub remote_prepare_local_job {
     my ($ssh_info, $jobid, $vmid, $volumes, $last_sync, $force) = @_;
 
     my $ssh_cmd = PVE::Cluster::ssh_info_to_command($ssh_info);
-    my $cmd = [@$ssh_cmd, '--', 'pvesr', 'prepare-local-job', $jobid, $vmid];
+    my $cmd = [@$ssh_cmd, '--', 'pvesr', 'prepare-local-job', $jobid];
     push @$cmd, @$volumes if scalar(@$volumes);
 
     push @$cmd, '--last_sync', $last_sync;
@@ -142,7 +142,7 @@ sub remote_finalize_local_job {
 
     my $ssh_cmd = PVE::Cluster::ssh_info_to_command($ssh_info);
     my $cmd = [@$ssh_cmd, '--', 'pvesr', 'finalize-local-job', $jobid,
-	       $vmid, @$volumes, '--last_sync', $last_sync];
+	       @$volumes, '--last_sync', $last_sync];
 
     PVE::Tools::run_command($cmd);
 }
-- 
2.11.0





More information about the pve-devel mailing list