Remove spurious argument to vm_define

This commit is contained in:
Joshua Boniface 2019-12-19 11:43:59 -05:00
parent 2d14fabe62
commit 78089afb4e
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ def vm_list(node=None, state=None, limit=None, is_fuzzy=True):
pvc_common.stopZKConnection(zk_conn)
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.
"""

View File

@ -296,7 +296,7 @@ def api_vm_root():
else:
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'])
@authenticator