Commit 1c887e1a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Don't duplicate supplies

  The requestSoftwareRelease don't have proper raise in case 2 supplies are done on the same transaction.
parent f6b1143c
......@@ -8,7 +8,7 @@ for allocation_supply_line in allocation_supply.contentValues(portal_type="Alloc
for allocation_supply_cell in allocation_supply_line.contentValues(portal_type="Allocation Supply Cell"):
if allocation_supply_cell.isAllocable():
release_variation = allocation_supply_cell.getSoftwareReleaseValue()
if release_variation is not None:
if release_variation is not None and release_variation.getUrlString() not in url_string_list:
url_string_list.append(release_variation.getUrlString())
for compute_node in allocation_supply.getAggregateValueList(portal_type="Compute Node"):
......
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