diff options
author | deepak.mourya <deepak.mourya@nectechnologies.in> | 2018-06-25 10:05:38 +0530 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2018-06-28 13:50:18 +0000 |
commit | 40de025cedffb1aa75aa28388943c2b326266b83 (patch) | |
tree | 3c4ab4f10dbcb1654fa989a7325fef2fb990d8ce /placement-api-ref | |
parent | 0626dd0f5bbafdfd38b85a074513894d3dc724af (diff) | |
download | nova-40de025cedffb1aa75aa28388943c2b326266b83.tar.gz |
Handle CannotDeleteParentResourceProvider to 409 Conflict
Error handling to raise the exception 409 while deleting
the parent if it has children.
Closes-Bug: #1770636
Change-Id: I87df68992e4e635f009974f5205ca4919a4f2576
(cherry picked from commit 1ea3d5ec743838ddb754739a9919a2ecf4c54f9f)
Diffstat (limited to 'placement-api-ref')
-rw-r--r-- | placement-api-ref/source/resource_provider.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/placement-api-ref/source/resource_provider.inc b/placement-api-ref/source/resource_provider.inc index 21bd87d506..73a34897af 100644 --- a/placement-api-ref/source/resource_provider.inc +++ b/placement-api-ref/source/resource_provider.inc @@ -106,6 +106,9 @@ A `409 Conflict` response code will be returned if there exist allocations records for any of the inventories that would be deleted as a result of removing the resource provider. +This error code will be also returned if there are existing child resource +providers under the parent resource provider being deleted. + Request ------- |