mirror of
git://git.proxmox.com/git/pve-guest-common.git
synced 2025-01-13 13:17:47 +03:00
call get_replicatable_volumes with $vmid parameter
This commit is contained in:
parent
54b79ff5e2
commit
c324e90764
@ -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 $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)
|
||||
|
@ -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 $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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user