Commit 083d89a6 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: reduce potential confusion

parent c3ebfa99
...@@ -42,7 +42,7 @@ root_instance = None ...@@ -42,7 +42,7 @@ root_instance = None
root_instance_list = [ root_instance_list = [
q for q in instance_tree.getSuccessorValueList(portal_type=["Software Instance", "Slave Instance"]) q for q in instance_tree.getSuccessorValueList(portal_type=["Software Instance", "Slave Instance"])
if q.getSlapState() != 'destroy_requested'] if q.getSlapState() != 'destroy_requested']
if len(root_instance_list) != 0: if len(root_instance_list) == 1:
root_instance = root_instance_list[0] root_instance = root_instance_list[0]
partition = root_instance.getAggregateValue() partition = root_instance.getAggregateValue()
if partition is not None: if 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