X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplanetlab%2Fplaggregate.py;h=7834ee454a3b9c621f3ff6461e5c27282f098934;hb=d00a77ff1d6c1d34de9df2753b34fa4c587b7f5a;hp=3e2d3428b4452dad0743962d6499924bf51e1fe7;hpb=a2a9409e4573b8f2ae9b57fd7f6e83fc3d447983;p=sfa.git diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py index 3e2d3428..7834ee45 100644 --- a/sfa/planetlab/plaggregate.py +++ b/sfa/planetlab/plaggregate.py @@ -363,14 +363,13 @@ class PlAggregate: rspec.xml.set('expires', rspec_expires) # lookup the sliver allocations - geni_urn = None + geni_urn = = urns[0] sliver_ids = [sliver['sliver_id'] for sliver in slivers] constraint = SliverAllocation.sliver_id.in_(sliver_ids) sliver_allocations = dbsession.query(SliverAllocation).filter(constraint) sliver_allocation_dict = {} for sliver_allocation in sliver_allocations: - if not geni_urn: - geni_urn = sliver_allocation.slice_urn + geni_urn = sliver_allocation.slice_urn sliver_allocation_dict[sliver_allocation.sliver_id] = sliver_allocation if not options.get('list_leases') or options['list_leases'] != 'leases':