]> git.proxmox.com Git - qemu-server.git/commit
vm status: force int where appropriate
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 1 Jun 2021 06:43:06 +0000 (08:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Jun 2021 12:47:35 +0000 (14:47 +0200)
commitad2cad72bef98ef9f88e72ee9dc3434030d62a6e
treef12f46fdb6912f8f20de08d346ea391dc8fa785b
parentef88eaaa58a1198525ce45b3bd62e6dc91fd0c55
vm status: force int where appropriate

to avoid potential problems with stringified numbers in Javascript and
elsewehere.

The vmid was not always an integer as the return schema expects, namely
when there was an opt_vmid argument, because the 'ne' comparision coerced the
vmid to be a string then.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm