Commit 0024d715 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: coding style

parent 837e1234
......@@ -15,13 +15,13 @@ instance_tree_virtual_master_relative_url = instance_tree_virtual_master.getRela
# and rerun the migration
#######################################################################
root_software_instance = ([x for x in instance_tree.getSuccessorValueList() if x.getTitle()==instance_tree.getTitle()] + [None])[0]
sla_xml_dict = {}
# sla_xml_dict = {}
if root_software_instance is not None:
try:
sla_xml_dict = root_software_instance.getSlaXmlAsDict()
except: # pylint: disable=bare-except
# XMLSyntaxError
pass
# try:
# sla_xml_dict = root_software_instance.getSlaXmlAsDict()
# except: # pylint: disable=bare-except
# # XMLSyntaxError
# pass
root_partition = root_software_instance.getAggregateValue()
if root_partition is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment