]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Storage/Content.pm
api: content: correctly handle warnings status for delayed task
[pve-storage.git] / PVE / API2 / Storage / Content.pm
index 4da69343674f5d5c75348c4033f3dc5af1bf7063..4d0ceb61d896a9cb4252d276fc71e1c0b41e343e 100644 (file)
@@ -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";
            }
        }