From 2511f525f554c582a648e88c509f6b13d93e02aa Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Tue, 19 Oct 2021 09:54:56 +0200 Subject: [PATCH] config: snapshot delete check: use volume_snapshot_info Signed-off-by: Fabian Ebner --- src/PVE/AbstractConfig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/AbstractConfig.pm b/src/PVE/AbstractConfig.pm index 39f1cc8..e62f542 100644 --- a/src/PVE/AbstractConfig.pm +++ b/src/PVE/AbstractConfig.pm @@ -846,14 +846,14 @@ my $snapshot_delete_assert_not_needed_by_replication = sub { 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->@*) { my $jobid = $job->{id}; my @jobs_snapshots = grep { PVE::Replication::is_replication_snapshot($_, $jobid) - } $snapshots->@*; + } keys $snapshots->%*; next if scalar(@jobs_snapshots) > 0;