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 = []
|
||||
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
|
||||
|
||||
|
6
releasenotes/notes/bug-1958307-63bf308ca6a97068.yaml
Normal file
6
releasenotes/notes/bug-1958307-63bf308ca6a97068.yaml
Normal file
@ -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
Block a user