Set default description if not set
This commit is contained in:
parent
4dbb8c7eb2
commit
9af3b032fb
3
pvc.py
3
pvc.py
|
@ -93,7 +93,10 @@ def stopZKConnection(zk_conn):
|
||||||
def getDomainMainDetails(parsed_xml):
|
def getDomainMainDetails(parsed_xml):
|
||||||
# Get the information we want from it
|
# Get the information we want from it
|
||||||
duuid = str(parsed_xml.uuid)
|
duuid = str(parsed_xml.uuid)
|
||||||
|
try:
|
||||||
ddescription = str(parsed_xml.description)
|
ddescription = str(parsed_xml.description)
|
||||||
|
except AttributeError:
|
||||||
|
ddescription = "N/A"
|
||||||
dname = str(parsed_xml.name)
|
dname = str(parsed_xml.name)
|
||||||
dmemory = str(parsed_xml.memory)
|
dmemory = str(parsed_xml.memory)
|
||||||
dmemory_unit = str(parsed_xml.memory.attrib['unit'])
|
dmemory_unit = str(parsed_xml.memory.attrib['unit'])
|
||||||
|
|
Loading…
Reference in New Issue