[pve-devel] [PATCH qemu-server 9/9] api: update vm: correctly handle warnings status for delayed task

Fabian Ebner f.ebner at proxmox.com
Wed May 12 14:32:58 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 PVE/API2/Qemu.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index c56b609..336aa73 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1438,7 +1438,7 @@ my $update_vm_api  = sub {
 
 		if (!$running) {
 		    my $status = PVE::Tools::upid_read_status($upid);
-		    return if $status eq 'OK';
+		    return if !PVE::Tools::upid_status_is_error($status);
 		    die $status;
 		}
 	    }
-- 
2.20.1






More information about the pve-devel mailing list