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 ...@@ -15,13 +15,13 @@ instance_tree_virtual_master_relative_url = instance_tree_virtual_master.getRela
# and rerun the migration # and rerun the migration
####################################################################### #######################################################################
root_software_instance = ([x for x in instance_tree.getSuccessorValueList() if x.getTitle()==instance_tree.getTitle()] + [None])[0] 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: if root_software_instance is not None:
try: # try:
sla_xml_dict = root_software_instance.getSlaXmlAsDict() # sla_xml_dict = root_software_instance.getSlaXmlAsDict()
except: # pylint: disable=bare-except # except: # pylint: disable=bare-except
# XMLSyntaxError # # XMLSyntaxError
pass # pass
root_partition = root_software_instance.getAggregateValue() root_partition = root_software_instance.getAggregateValue()
if root_partition is not None: 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