]> git.proxmox.com Git - pve-guest-common.git/commitdiff
Revert "Add guest type at find_local_replication_job"
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:27:16 +0000 (07:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:27:16 +0000 (07:27 +0200)
This reverts commit 914b6647a4467d323af1d3b501293270c70c3fd1.

No longer required.

PVE/ReplicationConfig.pm

index 670113d4c77a8b7b573b526b83b774daa897fd3f..51cfe81ead08fb702a7bbea214a467644973a16a 100644 (file)
@@ -213,13 +213,9 @@ sub check_for_existing_jobs {
 sub find_local_replication_job {
     my ($cfg, $vmid, $target) = @_;
 
-    my $vms = PVE::Cluster::get_vmlist();
-
     foreach my $id (keys %{$cfg->{ids}}) {
        my $data = $cfg->{ids}->{$id};
 
-       $data->{vmtype} = $vms->{ids}->{$vmid}->{type};
-
        return $data if $data->{type} eq 'local' &&
            $data->{guest} == $vmid && $data->{target} eq $target;
     }