api: update: fix missing newline in background-delayed task error

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>
This commit is contained in:
Thomas Lamprecht 2021-11-15 09:21:48 +01:00
parent bec8742495
commit ce3fbcd456

View 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";
}
}