X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fopenstack%2Fosaggregate.py;h=d6d73677ad60e63218e5b161854ed86a2195b867;hb=0d9b4d3f412bbf7406b748a8f75a3a00ddb2818a;hp=16eec41eb34ae65693136dbd87dd872bfee44c62;hpb=52f8ae3e237fbbd3c73b831cbdf6ca35de06e711;p=sfa.git diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index 16eec41e..d6d73677 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -75,7 +75,7 @@ class OSAggregate: # lookup the sliver allocations sliver_ids = [sliver['sliver_id'] for sliver in slivers] constraint = SliverAllocation.sliver_id.in_(sliver_ids) - sliver_allocations = dbsession.query(SliverAllocation).filter(constraint) + sliver_allocations = self.driver.api.dbsession().query(SliverAllocation).filter(constraint) sliver_allocation_dict = {} for sliver_allocation in sliver_allocations: sliver_allocation_dict[sliver_allocation.sliver_id] = sliver_allocation