mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-09 11:02:53 +00:00
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:
parent
bec8742495
commit
ce3fbcd456
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user