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

slapos_pdm: reduce potential confusion

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