c95cd011d0
When doing a PUT to /allocations/{consumer_uuid} if the list of
allocations is empty there is a 500 error coming from an uncaught
IndexError.
Adjust the schema to require at least one allocation. If no allocations
are provided in the list, the response will be a 400.
This doesn't require a microversion because it is changing a 500 to
a useful response.
Change-Id: I361fa1e534d7b20c985558e272b672b84c6fe439
Closes-Bug: #1708260
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
aggregate.py | ||
allocation.py | ||
inventory.py | ||
resource_class.py | ||
resource_provider.py | ||
root.py | ||
usage.py |