Merge "Fix list_allocations for multi-host reservations" into stable/wallaby

This commit is contained in:
Zuul 2022-05-05 17:42:49 +00:00 committed by Gerrit Code Review
commit 60622bc649
2 changed files with 8 additions and 1 deletions

View File

@ -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

View 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>`_.