Fix selector name in POST

This commit is contained in:
Joshua Boniface 2019-12-26 18:53:35 -05:00
parent c9fb9600a4
commit f178436025
1 changed files with 2 additions and 2 deletions

View File

@ -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