diff --git a/client-api/api_lib/pvcapi_helper.py b/client-api/api_lib/pvcapi_helper.py index 7d41ef30..1735c412 100755 --- a/client-api/api_lib/pvcapi_helper.py +++ b/client-api/api_lib/pvcapi_helper.py @@ -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. """ diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index ac8065a5..67cd807e 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -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/', methods=['GET', 'POST', 'PUT', 'DELETE']) @authenticator