]> git.proxmox.com Git - pve-manager.git/commit
pvesh: proxy handler: fix handling array parameters
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 17 Nov 2023 14:58:05 +0000 (15:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 15:07:42 +0000 (16:07 +0100)
commit96aee647a8d216e0e0a43597ba820cc5490f200c
treee417c54f68cc92c993b92c030879b8bdaabcf94b
parent6ea1b6da7c5d20ebab7cc2736d37a8ecc32fb517
pvesh: proxy handler: fix handling array parameters

As reported in the community forum and reproduced locally, issuing a
QEMU guest agent command would lead to an error when proxying to
another node:

> root@pve8a2 ~ # pvesh create /nodes/pve8a1/qemu/126/agent/exec --command 'whoami'
> Wide character in die at /usr/share/perl5/PVE/RESTHandler.pm line 918.
> proxy handler failed: Agent error: Guest agent command failed, error was 'Failed to execute child process “ARRAY(0x55842bb161a0)” (No such file or directory)'

Fix it, by splitting up array references correctly.

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

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/CLI/pvesh.pm