From 6efbed5e708fdebfbb4d82dc45a732da7e2de47a Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Fri, 20 Apr 2018 12:27:40 +0100 Subject: [PATCH] Fix link in placement contributor doc A todo in the contributor/placement.rst slipped through the review cracks and meant a bad link to 'link to spec once it merges' is in the docs. This fixes it with the correct link to the spec. Change-Id: I13daf9576dcb1229409826b4c4eac28c8bb1e23f --- doc/source/contributor/placement.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/contributor/placement.rst b/doc/source/contributor/placement.rst index 7884c457e165..12773d1ddcf6 100644 --- a/doc/source/contributor/placement.rst +++ b/doc/source/contributor/placement.rst @@ -252,8 +252,8 @@ environment. It can be retrieved as follows:: changes in a patch that is separate from and prior to the HTTP API change. -If a handler needs to return an error response, with the advent of `link to -spec once it merges`_, it is possible to include a code in the JSON error +If a handler needs to return an error response, with the advent of `Placement +API Error Handling`_, it is possible to include a code in the JSON error response. This can be used to distinguish different errors with the same HTTP response status code (a common case is a generation conflict versus an inventory in use conflict). Error codes are simple namespaced strings (e.g., @@ -430,3 +430,4 @@ for an eventual extraction and avoid creating unnecessary interdependencies. .. _gabbi-run: http://gabbi.readthedocs.io/en/latest/runner.html .. _errors: http://specs.openstack.org/openstack/api-wg/guidelines/errors.html .. _API Reference: https://developer.openstack.org/api-ref/placement/ +.. _Placement API Error Handling: http://specs.openstack.org/openstack/nova-specs/specs/rocky/approved/placement-api-error-handling.html