Commit 724bf1e3 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: do not crash because of the assert

parent edef233e
......@@ -100,7 +100,8 @@ if len(allocation_cell_list) == 1:
# XXX Upgrade
if compute_node is not None:
assert compute_node.getRelativeUrl() in allocation_cell_list[0].getParentValue().getParentValue().getAggregateList()
if compute_node.getRelativeUrl() not in allocation_cell_list[0].getParentValue().getParentValue().getAggregateList():
return
if portal.portal_catalog.getResultValue(
portal_type='Upgrade Decision',
......
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