]> git.proxmox.com Git - qemu-server.git/commit
cloudinit: allow non-root users to set ciupgrade option
authorFriedrich Weber <f.weber@proxmox.com>
Mon, 24 Jul 2023 11:33:48 +0000 (13:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2023 09:42:07 +0000 (11:42 +0200)
commit92c02f6c64fbac3e64b9701dbd6c3af604e991a1
treedd26375ccdc2060c1b49388cdfd81b3a85929de5
parentb155086bd8c408ca03673e9ae9339c32ef1f99fc
cloudinit: allow non-root users to set ciupgrade option

The new ciupgrade option was missing in $cloudinitoptions in
PVE::API2::Qemu, so $check_vm_modify_config_perm defaulted to
requiring root@pam for modifying the option. To fix this, add
ciupgrade to $cloudinitoptions. This also fixes an issue where
ciupgrade was missing in the output of `qm cloudinit pending`,
as it also relies on $cloudinitoptions.

This issue was originally reported in the forum [0].

Also add a comment to avoid similar issues when adding new options in
the future.

[0]: https://forum.proxmox.com/threads/131043/

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm