From 78089afb4e328bae41bd8a1f26c96a93c4d70fc0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 19 Dec 2019 11:43:59 -0500 Subject: [PATCH] Remove spurious argument to vm_define --- client-api/api_lib/pvcapi_helper.py | 2 +- client-api/pvc-api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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