From f17843602507b0e6464204411389b1843c0b8ea8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 26 Dec 2019 18:53:35 -0500 Subject: [PATCH] Fix selector name in POST --- client-api/pvc-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index abbb7f4a..80a597c2 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -873,7 +873,7 @@ class API_VM_Element(Resource): @RequestParser([ { 'name': 'limit' }, { 'name': 'node' }, - { 'name': 'selector', 'choices': ('mem', 'vcpu', 'load', 'vms'), 'helptext': "A valid selector must be specified" }, + { 'name': 'selector', 'choices': ('mem', 'vcpus', 'load', 'vms'), 'helptext': "A valid selector must be specified" }, { 'name': 'autostart' }, { 'name': 'xml', 'required': True, 'helptext': "A Libvirt XML document must be specified" }, ]) @@ -910,7 +910,7 @@ class API_VM_Element(Resource): default: mem enum: - mem - - vcpu + - vcpus - load - vms - in: query