]> git.proxmox.com Git - qemu-server.git/commit
api2: fix vmconfig_apply_pending errors handling
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 5 Jul 2021 22:02:30 +0000 (00:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jul 2021 10:40:43 +0000 (12:40 +0200)
commit4a5cb613d37b684133d73f70a205e8df096513ce
treed254c7de66115d7b7fbde7e4be1b0b88917d1d48
parent1a947e67fe19e1f5534f234f0095020ed48fdf2d
api2: fix vmconfig_apply_pending errors handling

commit
https://git.proxmox.com/?p=qemu-server.git;a=commit;h=eb5e482ded9ae6aeb6575de9441b79b90a5de531

have introduced error handling for offline pending apply,

-               PVE::QemuServer::vmconfig_apply_pending($vmid, $conf, $storecfg, $running);
+               PVE::QemuServer::vmconfig_apply_pending($vmid, $conf, $storecfg, $running, $errors);

 sub vmconfig_apply_pending {
-    my ($vmid, $conf, $storecfg) = @_;
+    my ($vmid, $conf, $storecfg, $errors) = @_;

but they was wrong nonused $running param, so currently $errors are not correctly handled

Fixes: eb5e482ded ("vmconfig_apply_pending: add error handling")
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Tested-by: Oguz Bektas <o.bektas@proxmox.com>
PVE/API2/Qemu.pm