mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-12 04:07:26 +00:00
config: snapshot delete check: use volume_snapshot_info
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
b20bf9bf7d
commit
2511f525f5
@ -846,14 +846,14 @@ my $snapshot_delete_assert_not_needed_by_replication = sub {
|
|||||||
|
|
||||||
return if !$volumes->{$volid};
|
return if !$volumes->{$volid};
|
||||||
|
|
||||||
my $snapshots = PVE::Storage::volume_snapshot_list($storecfg, $volid);
|
my $snapshots = PVE::Storage::volume_snapshot_info($storecfg, $volid);
|
||||||
|
|
||||||
for my $job ($replication_jobs->@*) {
|
for my $job ($replication_jobs->@*) {
|
||||||
my $jobid = $job->{id};
|
my $jobid = $job->{id};
|
||||||
|
|
||||||
my @jobs_snapshots = grep {
|
my @jobs_snapshots = grep {
|
||||||
PVE::Replication::is_replication_snapshot($_, $jobid)
|
PVE::Replication::is_replication_snapshot($_, $jobid)
|
||||||
} $snapshots->@*;
|
} keys $snapshots->%*;
|
||||||
|
|
||||||
next if scalar(@jobs_snapshots) > 0;
|
next if scalar(@jobs_snapshots) > 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user