Remove spurious argument to vm_define
This commit is contained in:
parent
2d14fabe62
commit
78089afb4e
|
@ -272,7 +272,7 @@ def vm_list(node=None, state=None, limit=None, is_fuzzy=True):
|
||||||
pvc_common.stopZKConnection(zk_conn)
|
pvc_common.stopZKConnection(zk_conn)
|
||||||
return flask.jsonify(retdata), retcode
|
return flask.jsonify(retdata), retcode
|
||||||
|
|
||||||
def vm_define(name, xml, node, selector):
|
def vm_define(xml, node, selector):
|
||||||
"""
|
"""
|
||||||
Define a VM from Libvirt XML in the PVC cluster.
|
Define a VM from Libvirt XML in the PVC cluster.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -296,7 +296,7 @@ def api_vm_root():
|
||||||
else:
|
else:
|
||||||
autostart = False
|
autostart = False
|
||||||
|
|
||||||
return api_helper.vm_define(vm, libvirt_xml, node, selector)
|
return api_helper.vm_define(libvirt_xml, node, selector)
|
||||||
|
|
||||||
@api.route('/api/v1/vm/<vm>', methods=['GET', 'POST', 'PUT', 'DELETE'])
|
@api.route('/api/v1/vm/<vm>', methods=['GET', 'POST', 'PUT', 'DELETE'])
|
||||||
@authenticator
|
@authenticator
|
||||||
|
|
Loading…
Reference in New Issue