openvz is deprecated but can still be a return value
maxcpu can be a real number (e.g., for CT if cpulimit is 1.5 and
cores is not set), and may not be an integer
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
type => {
description => "Resource type.",
type => 'string',
- enum => ['node', 'storage', 'pool', 'qemu', 'lxc'],
+ enum => ['node', 'storage', 'pool', 'qemu', 'lxc', 'openvz'],
},
status => {
description => "Resource type dependent status.",
},
maxcpu => {
description => "Number of available CPUs (when type in node,qemu,lxc).",
- type => 'integer',
+ type => 'number',
optional => 1,
},
mem => {