From d863b200e1873e555864164a49a939938e5113db Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Fri, 21 Jul 2017 17:44:43 +0800 Subject: [PATCH] Move the note about '/os-volume_boot' to the correct place Move the note about '/os-volume_boot' close to the routes of '/os-volume_boot'. Partial-implement-blueprint api-no-more-extensions-pike Change-Id: I4799e1b4d31f8a0c3fe8a796f7c9adadea92a6f4 --- nova/api/openstack/compute/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/api/openstack/compute/routes.py b/nova/api/openstack/compute/routes.py index 35e24a6298bb..7b7d75cca694 100644 --- a/nova/api/openstack/compute/routes.py +++ b/nova/api/openstack/compute/routes.py @@ -404,8 +404,6 @@ volumes_controller = functools.partial(_create_controller, # should be in the front of '/servers/{id}', otherwise the request to # '/servers/detail' always matches to '/servers/{id}' as the id is 'detail'. ROUTE_LIST = ( - # NOTE: '/os-volumes_boot' is a clone of '/servers'. We may want to - # deprecate it in the future. # NOTE: This is a redirection from '' to '/'. The request to the '/v2.1' # or '/2.0' without the ending '/' will get a response with status code # '302' returned. @@ -757,6 +755,8 @@ ROUTE_LIST = ( 'GET': [volumes_controller, 'show'], 'DELETE': [volumes_controller, 'delete'] }), + # NOTE: '/os-volumes_boot' is a clone of '/servers'. We may want to + # deprecate it in the future. ('/os-volumes_boot', { 'GET': [server_controller, 'index'], 'POST': [server_controller, 'create']