commit f0a9959a7fd98b091a17a29544eacdbd6dd37337
Author: Lajos Katona <email address hidden>
Date: Tue Mar 20 14:00:29 2018 +0100
Fix placement calls in placement client
Based on the placement api-ref fix the already implemented placement API
calls in the placement client of neutron-lib.
Fixed/changed parts:
- Add version header to create_resource_provider
- Change create_inventory to update_resource_provider_inventories, as
the http request is a PUT not a POST, and add exception to handle the
case when the rp is not found.
- Change update_inventory to update_resource_provider_inventory, to make
the method name in sync with placement API ref.
- Fix the failing unit tests, and cover the negative case for
update_resource_provider_inventories.
Reviewed: https:/ /review. openstack. org/554532 /git.openstack. org/cgit/ openstack/ neutron- lib/commit/ ?id=f0a9959a7fd 98b091a17a29544 eacdbd6dd37337
Committed: https:/
Submitter: Zuul
Branch: master
commit f0a9959a7fd98b0 91a17a29544eacd bd6dd37337
Author: Lajos Katona <email address hidden>
Date: Tue Mar 20 14:00:29 2018 +0100
Fix placement calls in placement client
Based on the placement api-ref fix the already implemented placement API
calls in the placement client of neutron-lib.
Fixed/changed parts: resource_ provider resource_ provider_ inventories, as resource_ provider_ inventory, to make resource_ provider_ inventories.
- Add version header to create_
- Change create_inventory to update_
the http request is a PUT not a POST, and add exception to handle the
case when the rp is not found.
- Change update_inventory to update_
the method name in sync with placement API ref.
- Fix the failing unit tests, and cover the negative case for
update_
Change-Id: I336c57e734f917 95038c5ba907497 0d1f5522da2
Related-Bug: #1578989