Fix missing argument

This commit is contained in:
2019-12-09 11:31:56 -05:00
parent 6c4eb7fc7b
commit 867634cea7
2 changed files with 12 additions and 12 deletions

View File

@ -167,7 +167,7 @@ def define_vm(zk_conn, config_data, target_node, node_limit, node_selector, node
dom_name = parsed_xml.name.text
# Ensure that the UUID and name are unique
if searchClusterByUUID(dom_uuid) or searchClusterByName(dom_name):
if searchClusterByUUID(zk_conn, dom_uuid) or searchClusterByName(zk_conn, dom_name):
return False, 'ERROR: Specified VM "{}" or UUID "{}" matches an existing VM on the cluster'.format(dom_name, dom_uuid)
if not target_node: