From a4beaa9422778144dcafe1dae097913958cfe3ec Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 29 Jun 2017 07:45:57 +0200 Subject: [PATCH] PVE/API2/Replication.pm: cleanup - avoid modifying jobcfg This is simply no longer necessary. --- PVE/API2/Replication.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm index dca93d8c..d25b744a 100644 --- a/PVE/API2/Replication.pm +++ b/PVE/API2/Replication.pm @@ -62,9 +62,9 @@ sub run_single_job { $jobcfg->{id} = $jobid; - $jobcfg->{vmtype} = $vms->{ids}->{$vmid}->{type}; + my $vmtype = $vms->{ids}->{$vmid}->{type}; - my $guest_class = $lookup_guest_class->($jobcfg->{vmtype}); + my $guest_class = $lookup_guest_class->($vmtype); PVE::Replication::run_replication($guest_class, $jobcfg, $now, $now, $logfunc); };