]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
PVE/API2/Replication.pm: cleanup - avoid modifying jobcfg
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:45:57 +0000 (07:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:45:57 +0000 (07:45 +0200)
This is simply no longer necessary.

PVE/API2/Replication.pm

index dca93d8cdbf8d45d021bc944b186c6fe99eadd40..d25b744a968c152bd7bab773c4c5ec0c2fe2b614 100644 (file)
@@ -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);
     };