[pve-devel] [PATCH container] config list helper: fix return type of vmid for container index API enpoint

Fiona Ebner f.ebner at proxmox.com
Thu Apr 11 13:57:52 CEST 2024


Am 05.12.23 um 12:35 schrieb Fiona Ebner:
> 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 at proxmox.com>

Ping




More information about the pve-devel mailing list