Fix changed variable name

This commit is contained in:
Joshua Boniface 2018-09-20 03:46:05 -04:00
parent 513de96626
commit 461183a371
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ def getDomainUUID(zk_conn, domain):
# #
def define_vm(zk_conn, config_data, target_hypervisor, selector): def define_vm(zk_conn, config_data, target_hypervisor, selector):
# Parse the XML data # Parse the XML data
parsed_xml = lxml.objectify.fromstring(data) parsed_xml = lxml.objectify.fromstring(config_data)
dom_uuid = parsed_xml.uuid.text dom_uuid = parsed_xml.uuid.text
dom_name = parsed_xml.name.text dom_name = parsed_xml.name.text
click.echo('Adding new VM with Name "{}" and UUID "{}" to database.'.format(dom_name, dom_uuid)) click.echo('Adding new VM with Name "{}" and UUID "{}" to database.'.format(dom_name, dom_uuid))