[pve-devel] [PATCH pve-manager] Clean up unnecessary code.

Wolfgang Link w.link at proxmox.com
Tue Sep 19 12:01:15 CEST 2017


The jobid is already parsed by the file parser.
---
 PVE/API2/Replication.pm | 2 --
 1 file changed, 2 deletions(-)

diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
index 15499508..f396615d 100644
--- a/PVE/API2/Replication.pm
+++ b/PVE/API2/Replication.pm
@@ -60,8 +60,6 @@ sub run_single_job {
 
 	die "unable to sync to local node\n" if $jobcfg->{target} eq $local_node;
 
-	$jobcfg->{id} = $jobid;
-
 	my $vmtype = $vms->{ids}->{$vmid}->{type};
 
 	my $guest_class = $lookup_guest_class->($vmtype);
-- 
2.11.0





More information about the pve-devel mailing list