mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-03-07 00:58:27 +03:00
api: content: correctly handle warnings status for delayed task
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
347e677b78
commit
0153334270
@ -455,7 +455,7 @@ __PACKAGE__->register_method ({
|
|||||||
if (!$currently_deleting) {
|
if (!$currently_deleting) {
|
||||||
my $status = PVE::Tools::upid_read_status($upid);
|
my $status = PVE::Tools::upid_read_status($upid);
|
||||||
chomp $status;
|
chomp $status;
|
||||||
return undef if $status eq 'OK';
|
return undef if !PVE::Tools::upid_status_is_error($status);
|
||||||
die "$status\n";
|
die "$status\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user