]> git.proxmox.com Git - pve-guest-common.git/commitdiff
PVE::Replication - do not use $jobcfg->{vmtype}
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:25:28 +0000 (07:25 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Jun 2017 05:26:51 +0000 (07:26 +0200)
PVE/Replication.pm

index 2e28e537c49e42d261491980d1b08ec1782a8851..e176638c82a40ef349840e0ecbe2289fa340a95f 100644 (file)
@@ -180,7 +180,6 @@ sub replicate {
        if $start_time <= $last_sync;
 
     my $vmid = $jobcfg->{guest};
-    my $vmtype = $jobcfg->{vmtype};
 
     my $conf = $guest_class->load_config($vmid);
     my ($running, $freezefs) = $guest_class->__snapshot_check_freeze_needed($vmid, $conf, 0);
@@ -190,7 +189,9 @@ sub replicate {
 
     $running //= 0;  # to avoid undef warnings from logfunc
 
-    $logfunc->("guest => $vmid, type => $vmtype, running => $running");
+    my $guest_name = $guest_class->guest_type() . ' ' . $vmid;
+
+    $logfunc->("guest => $guest_name, running => $running");
     $logfunc->("volumes => " . join(',', @$sorted_volids));
 
     if (my $remove_job = $jobcfg->{remove_job}) {