[pve-devel] [PATCH storage 6/9] api: content: correctly handle warnings status for delayed task
Fabian Ebner
f.ebner at proxmox.com
Wed May 12 14:32:55 CEST 2021
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
Dependency bump for pve-common is needed.
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 8b0e3de..a510e3b 100644
--- a/PVE/API2/Storage/Content.pm
+++ b/PVE/API2/Storage/Content.pm
@@ -454,7 +454,7 @@ __PACKAGE__->register_method ({
if (!$currently_deleting) {
my $status = PVE::Tools::upid_read_status($upid);
- return undef if $status eq 'OK';
+ return undef if !PVE::Tools::upid_status_is_error($status);
die $status;
}
}
--
2.20.1
More information about the pve-devel
mailing list