Commit e6794060 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 e71421ce
...@@ -8,7 +8,7 @@ for allocation_supply_line in allocation_supply.contentValues(portal_type="Alloc ...@@ -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"): for allocation_supply_cell in allocation_supply_line.contentValues(portal_type="Allocation Supply Cell"):
if allocation_supply_cell.isAllocable(): if allocation_supply_cell.isAllocable():
release_variation = allocation_supply_cell.getSoftwareReleaseValue() 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()) url_string_list.append(release_variation.getUrlString())
for compute_node in allocation_supply.getAggregateValueList(portal_type="Compute Node"): 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