]> git.proxmox.com Git - qemu-server.git/commitdiff
api: update: fix missing newline in background-delayed task error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 08:21:48 +0000 (09:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Nov 2021 08:21:50 +0000 (09:21 +0100)
this error path is mostly used for re-attaching disks and the like,
and the "check if task is already done" part uses a method to read
the task status that will never include a trailing newline, so add it
our self to avoid "... at /usr/share/perl5/PVE/API2/Qemu.pm line
1480. (500)"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index 28e09120158c0b51162afe0aed12362fd6be6a7d..6830009d51287efe323a219aa18e878548ac2b93 100644 (file)
@@ -1477,7 +1477,7 @@ my $update_vm_api  = sub {
                if (!$running) {
                    my $status = PVE::Tools::upid_read_status($upid);
                    return if !PVE::Tools::upid_status_is_error($status);
-                   die $status;
+                   die "failed to update VM $vmid: $status\n";
                }
            }