]> git.proxmox.com Git - qemu-server.git/commit
api: clone vm: comment and style clean-up deactivation error-handling
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Mar 2024 12:49:03 +0000 (13:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Mar 2024 12:51:30 +0000 (13:51 +0100)
commit04736ecbd56f3b4703c4e1720dfa9b3dbc96b3ce
treea7a36f55b7bd59a2acb4a06f76138d38e421b36a
parent9d6126e8db7234c3e357d165ae0fd7c0d9648229
api: clone vm: comment and style clean-up deactivation error-handling

Make the post-if check for the target not already running more
prominent by using a full if block.

Also comment on why we ignore the error here, while the commit
changing that explained it well, this is one of the things that might
be better of with a in-code comment (as doing the deactivation is
described as important here, so one might wonder why the code
continues if that fails)

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