neutron-lib/releasenotes/notes/placement-client-return-f4f22d244e7b174a.yaml
Bence Romsics 5aa2847367 Placement client: always return body
In a few POST and PUT calls we didn't return the JSON body of the
response we got. By that we were just throwing away information we
already waited for.

This patch makes sure that if the HTTP response had a body we return it.

We leave one exception: PUT /resource_classes/ microversions 1.2 - 1.6.
Usage of that is strongly discouraged and starting from 1.7 the response
no longer has a body.

Change-Id: Ifa4db6edd4c656023039f7a68c09bf2cea508231
2018-08-21 16:52:30 +02:00

9 lines
359 B
YAML

---
other:
- |
The ``create_resource_provider`` and ``associate_aggregates``
methods of ``PlacementAPIClient`` now return the parsed
body of the respective responses. Since these methods returned ``None``
previously this is unlikely to break anything. On the other hand callers
of these methods now have a chance to simplify their code.