]> git.proxmox.com Git - pve-storage.git/commit
api: config: add/update storage: check for type mismatch first
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 12 Jun 2023 14:27:33 +0000 (16:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Jun 2023 12:19:33 +0000 (14:19 +0200)
commit46b9c1fe319f6d468ad5ebf66ec8d9daadd3dca2
tree7c9e5708ec682b8df1de6601e39470d7cb1ce301
parentda6be324d97b461ade03f516b0acc8e644e79c8c
api: config: add/update storage: check for type mismatch first

This avoids confusing errors about other properties when the storage
type doesn't match. By highlighting that the type doesn't match, users
should know right away what the issue is.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/API2/Storage/Config.pm