5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-14 19:24:18 +03:00

call get_replicatable_volumes with $vmid parameter

This commit is contained in:
Dietmar Maurer 2017-06-13 09:17:50 +02:00
parent 54b79ff5e2
commit c324e90764
2 changed files with 2 additions and 2 deletions

View File

@ -598,7 +598,7 @@ sub snapshot_rollback {
my $repl_conf = PVE::ReplicationConfig->new(); my $repl_conf = PVE::ReplicationConfig->new();
if ($repl_conf->check_for_existing_jobs($vmid, 1)) { if ($repl_conf->check_for_existing_jobs($vmid, 1)) {
# remove all replication snapshots # 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 ]; my $sorted_volids = [ sort keys %$volumes ];
# remove all local replication snapshots (jobid => undef) # remove all local replication snapshots (jobid => undef)

View File

@ -145,7 +145,7 @@ sub replicate {
my $conf = $guest_class->load_config($vmid); my $conf = $guest_class->load_config($vmid);
my ($running, $freezefs) = $guest_class->__snapshot_check_freeze_needed($vmid, $conf, 0); 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 ];