]> git.proxmox.com Git - pve-container.git/commit
config list helper: fix return type of vmid for container index API enpoint
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 5 Dec 2023 11:35:32 +0000 (12:35 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 11 Apr 2024 13:28:29 +0000 (15:28 +0200)
commit81aa4bd987c892031a7c86e138c510967dbb8d3e
treea4ff963e7390e80afacea136b522f895a6251c46
parent68e51d5faa415cdb16f9a9eca872ee355bfa1898
config list helper: fix return type of vmid for container index API enpoint

The schema declares it to be an integer. Done in the config_list()
helper, to ensure consistency for the following existing code in
vmstatus():

> my $list = $opt_vmid ? { $opt_vmid => { type => 'lxc', vmid => int($opt_vmid) }} : config_list();

Should not cause any issues for other callers of the helper.

Reported in the community forum:
https://forum.proxmox.com/threads/137628/

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