]> git.proxmox.com Git - pve-guest-common.git/commitdiff
call get_replicatable_volumes with $vmid parameter
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 07:17:50 +0000 (09:17 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 07:17:50 +0000 (09:17 +0200)
PVE/AbstractConfig.pm
PVE/Replication.pm

index fac3749bcb967c9029df221c1e55dab9f2d5c3e5..64d19e4c75ff32ff4e447206728dc68cfb88a6b6 100644 (file)
@@ -598,7 +598,7 @@ sub snapshot_rollback {
     my $repl_conf = PVE::ReplicationConfig->new();
     if ($repl_conf->check_for_existing_jobs($vmid, 1)) {
        # remove all replication snapshots
     my $repl_conf = PVE::ReplicationConfig->new();
     if ($repl_conf->check_for_existing_jobs($vmid, 1)) {
        # remove all replication snapshots
-       my $volumes = $class->get_replicatable_volumes($storecfg, $conf, 1);
+       my $volumes = $class->get_replicatable_volumes($storecfg, $vmid, $conf, 1);
        my $sorted_volids = [ sort keys %$volumes ];
 
        # remove all local replication snapshots (jobid => undef)
        my $sorted_volids = [ sort keys %$volumes ];
 
        # remove all local replication snapshots (jobid => undef)
index ed57fed7c12acb4844dbac77a5e19906dbcb7c6c..4dde0ac5927ac3a8fd7aa9cd1b36fac762ff0a90 100644 (file)
@@ -145,7 +145,7 @@ sub replicate {
 
     my $conf = $guest_class->load_config($vmid);
     my ($running, $freezefs) = $guest_class->__snapshot_check_freeze_needed($vmid, $conf, 0);
 
     my $conf = $guest_class->load_config($vmid);
     my ($running, $freezefs) = $guest_class->__snapshot_check_freeze_needed($vmid, $conf, 0);
-    my $volumes = $guest_class->get_replicatable_volumes($storecfg, $conf, defined($jobcfg->{remove_job}));
+    my $volumes = $guest_class->get_replicatable_volumes($storecfg, $vmid, $conf, defined($jobcfg->{remove_job}));
 
     my $sorted_volids = [ sort keys %$volumes ];
 
 
     my $sorted_volids = [ sort keys %$volumes ];