From ca6d06695cbe8eb0f18d0723535767d2ca8c32ee Mon Sep 17 00:00:00 2001 From: Hemanth Makkapati Date: Wed, 22 Apr 2015 13:36:08 -0400 Subject: [PATCH] Fix deactivate/reactivate error to 403 in spec As it is, Glance correctly returns a 403 when one attempts to deactivate (reactivate) an image that is not in active (deactivated) status. A typo in the current spec incorrectly states that a 400 is returned in this situation. This patch corrects the typo. No code fix is required. Closes-Bug: #1445487 Change-Id: I7d7ed4716bffa69fa5f7f17145a1b64acc1cdbfa --- specs/kilo/deactivate-image.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/kilo/deactivate-image.rst b/specs/kilo/deactivate-image.rst index f49e83b7..6ff4a222 100644 --- a/specs/kilo/deactivate-image.rst +++ b/specs/kilo/deactivate-image.rst @@ -87,7 +87,7 @@ http://eavesdrop.openstack.org/meetings/api_wg/2015/api_wg.2015-02-19-00.00.log. * Description: Deactivate an image * Method: POST * Normal response code(s): 204 - * Expected error http response code(s): 400 + * Expected error http response code(s): 403 * When calling deactivate on an image which is not currently in the 'active' or 'deactivated' state. @@ -100,7 +100,7 @@ http://eavesdrop.openstack.org/meetings/api_wg/2015/api_wg.2015-02-19-00.00.log. * Description: Reactivate an image * Method: POST * Normal response code(s): 204 - * Expected error http response code(s): 400 + * Expected error http response code(s): 403 * When calling reactivate on an image which is not currently in the 'deactivated' or 'active' state.