Commit 047625b0 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_pdm: non validated allocation supply do not impact the software installation deletion

parent 53542666
......@@ -43,9 +43,8 @@ for allocation_cell in portal.portal_catalog(
resource__uid=software_product.getUid(),
software_release__uid=software_release.getUid()
):
if allocation_cell.isAllocable():
if allocation_cell.isAllocable() and (allocation_cell.getValidationState() == 'validated'):
return
# XXX check validation state
partition = portal.portal_catalog.getResultValue(
portal_type='Compute Partition',
......
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