Return strings only in extra details

This commit is contained in:
Joshua Boniface 2019-07-04 12:52:53 -04:00
parent 338af97a7a
commit 10a0da6fdf
1 changed files with 5 additions and 5 deletions

View File

@ -95,11 +95,11 @@ def getDomainMainDetails(parsed_xml):
# Get long-format details # Get long-format details
# #
def getDomainExtraDetails(parsed_xml): def getDomainExtraDetails(parsed_xml):
dtype = parsed_xml.os.type dtype = str(parsed_xml.os.type)
darch = parsed_xml.os.type.attrib['arch'] darch = str(parsed_xml.os.type.attrib['arch'])
dmachine = parsed_xml.os.type.attrib['machine'] dmachine = str(parsed_xml.os.type.attrib['machine'])
dconsole = parsed_xml.devices.console.attrib['type'] dconsole = str(parsed_xml.devices.console.attrib['type'])
demulator = parsed_xml.devices.emulator demulator = str(parsed_xml.devices.emulator)
return dtype, darch, dmachine, dconsole, demulator return dtype, darch, dmachine, dconsole, demulator