]> git.proxmox.com Git - qemu-server.git/commit
api: create disks: avoid adding secondary cloud-init drives
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 6 May 2022 10:11:14 +0000 (12:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Sep 2022 16:04:59 +0000 (18:04 +0200)
commit39b56b169ab7bb6414967627d6a1ad97817f1436
tree2d8383451aad5b7fc9608c791fdaeee9262fdc55
parentd064764a7010b4d074d940e882e171efe25b37a8
api: create disks: avoid adding secondary cloud-init drives

This will break possibly existing workflows like
1. add second cloud-init
2. remove first cloud-init
to change the cloud-init storage.

On the other hand, it avoids unintended misconfiguration of having
mutliple cloud-init drives with potentially different settings.

Also in preparation for adding cloud-init-related API calls, where
not being able to assume that there's only one cloud-init drive/state
would complicate things quite a bit.

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