]> git.proxmox.com Git - pve-container.git/commit
vm status: force int where appropriate
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 1 Jun 2021 06:43:05 +0000 (08:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Jun 2021 12:44:18 +0000 (14:44 +0200)
commit8808fb6565970e01f95d296684eaa1183441ad2b
tree927b67d4a3a1e82ba26ec1cee79f7a87f3470604
parent8904548452d845d30b3f04a6b9e8ad276b34c765
vm status: force int where appropriate

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@proxmox.com>
src/PVE/LXC.pm