Fix selector name in POST
This commit is contained in:
parent
c9fb9600a4
commit
f178436025
|
@ -873,7 +873,7 @@ class API_VM_Element(Resource):
|
||||||
@RequestParser([
|
@RequestParser([
|
||||||
{ 'name': 'limit' },
|
{ 'name': 'limit' },
|
||||||
{ 'name': 'node' },
|
{ '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': 'autostart' },
|
||||||
{ 'name': 'xml', 'required': True, 'helptext': "A Libvirt XML document must be specified" },
|
{ 'name': 'xml', 'required': True, 'helptext': "A Libvirt XML document must be specified" },
|
||||||
])
|
])
|
||||||
|
@ -910,7 +910,7 @@ class API_VM_Element(Resource):
|
||||||
default: mem
|
default: mem
|
||||||
enum:
|
enum:
|
||||||
- mem
|
- mem
|
||||||
- vcpu
|
- vcpus
|
||||||
- load
|
- load
|
||||||
- vms
|
- vms
|
||||||
- in: query
|
- in: query
|
||||||
|
|
Loading…
Reference in New Issue