]> git.proxmox.com Git - pve-manager.git/commitdiff
fixe return values in /cluster/resources
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 17 Aug 2018 11:18:14 +0000 (13:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Aug 2018 09:31:53 +0000 (11:31 +0200)
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>
PVE/API2/Cluster.pm

index 2c408b5b7a6898f5a4aa61b9e0fdec6f076856e0..7700ca139ec4f2f7b87eef0b0a81f9694331f6ef 100644 (file)
@@ -179,7 +179,7 @@ __PACKAGE__->register_method({
                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.",
@@ -207,7 +207,7 @@ __PACKAGE__->register_method({
                },
                maxcpu => {
                    description => "Number of available CPUs (when type in node,qemu,lxc).",
-                   type => 'integer',
+                   type => 'number',
                    optional => 1,
                },
                mem => {