Commit 07593d63 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: fixup monitor parameter retrieval

Do not check deleted root instances
parent b2db5730
......@@ -20,7 +20,7 @@ instance_tree = context
if instance_tree.getSlapState() == 'destroy_requested':
return {}
instance = instance_tree.getSuccessorValue()
instance = ([x for x in instance_tree.getSuccessorValueList() if (x.getTitle() == instance_tree.getTitle()) and (x.getSlapState() != 'destroy_requested')] + [None])[0]
if instance is None or instance.getSlapState() == 'destroy_requested':
return {}
......
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