]> git.proxmox.com Git - qemu-server.git/commit
fix: api: fix permission check for cloudinit drive update
authorFriedrich Weber <f.weber@proxmox.com>
Mon, 13 Mar 2023 12:56:25 +0000 (13:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2023 15:23:17 +0000 (17:23 +0200)
commitdafabbd01fa2612b7d28a7bc5c6bf876259309f8
tree1bc86e62aedc4dc285eca9e00ddad9b90c021782
parent92c02f6c64fbac3e64b9701dbd6c3af604e991a1
fix: api: fix permission check for cloudinit drive update

Trying to regenerate a cloudinit drive as a non-root user via the API
currently throws a Perl error, as reported in the forum [1]. This is
due to a type mismatch in the permission check, where a string is
passed but an array is expected.

[1] https://forum.proxmox.com/threads/regenerate-cloudinit-by-put-api-return-500.124099/

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