[pve-devel] applied: [PATCH v2 container] vm status: force int where appropriate

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jun 17 14:49:35 CEST 2021


On 01.06.21 08:43, Fabian Ebner wrote:
> In the case of a running container with cgroupv2, swap would be a string,
> causing a
>     size.toFixed is not a function
> error for the format_size call in the containers's "Summary" page in the UI.
> 
> The vmids from config_list() are already integers as the return schema expects,
> while the opt_vmid passed from the status/current API call needs to be
> converted.
> 
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> 
> Changes from v1:
>     * also make vmid an integer.
> 
>  src/PVE/LXC.pm | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list