From 015333427000d1e580c690af36eb2983ed45135c Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Wed, 12 May 2021 14:32:55 +0200 Subject: [PATCH] api: content: correctly handle warnings status for delayed task Signed-off-by: Fabian Ebner Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Content.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index 4da6934..4d0ceb6 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2/Storage/Content.pm @@ -455,7 +455,7 @@ __PACKAGE__->register_method ({ if (!$currently_deleting) { my $status = PVE::Tools::upid_read_status($upid); chomp $status; - return undef if $status eq 'OK'; + return undef if !PVE::Tools::upid_status_is_error($status); die "$status\n"; } }