Merge "Fix list_allocations for multi-host reservations" into stable/wallaby
This commit is contained in:
commit
60622bc649
|
@ -148,7 +148,8 @@ def get_reservation_allocations_by_host_ids(host_ids, start_date, end_date,
|
||||||
|
|
||||||
allocs = []
|
allocs = []
|
||||||
for r in reservations:
|
for r in reservations:
|
||||||
allocs.append((r['id'], r['lease_id'], allocations[r['id']][0]))
|
for host in allocations[r['id']]:
|
||||||
|
allocs.append((r['id'], r['lease_id'], host))
|
||||||
|
|
||||||
return allocs
|
return allocs
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes result of the List Allocations API for reservations with multiple
|
||||||
|
physical hosts. For more details, see `bug 1958307
|
||||||
|
<https://bugs.launchpad.net/blazar/+bug/1958307>`_.
|
Loading…
Reference in New Issue