]> git.proxmox.com Git - qemu-server.git/commit
api: create: refactor parameter check logic
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 26 Apr 2022 12:30:50 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 06:43:09 +0000 (08:43 +0200)
commit325b32cc401e3c4185d926b8827e17e9feb3c16e
treeec8091dfc08e072b583fb6b864cad2894fc37346
parent3591b62b859d940c143085510aa9b0005f42c479
api: create: refactor parameter check logic

In preparation to allow passing along certain parameters together with
'archive'. Moving the parameter checks to after the
conflicts-with-'archive' to ensure that the more telling error will
trigger first.

All check helpers should handle empty params fine, but check first
just to make sure and to avoid all the superfluous function calls.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm