From c97c44cdfb35ecbf473ac5c98c2d3a4e9871ee8c Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Tue, 18 Apr 2017 19:40:50 +0800 Subject: [PATCH] Fix the evacuate API without json-schema validation in 2.13 The evacuate API loses the json-schema validation in 2.13 since the commit c01d16e81af6cd9453ffe7133bdc6a4c82e4f6d5. This patch fixes it. Change-Id: I7f221e3b924d91739ec9b24fd090410fb5fce55a Closes-bug: #1683752 --- nova/api/openstack/compute/evacuate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/api/openstack/compute/evacuate.py b/nova/api/openstack/compute/evacuate.py index 35dd9e16c99f..79b2cd68f315 100644 --- a/nova/api/openstack/compute/evacuate.py +++ b/nova/api/openstack/compute/evacuate.py @@ -74,7 +74,7 @@ class EvacuateController(wsgi.Controller): # backwards compatibility reasons. @extensions.expected_errors((400, 404, 409)) @wsgi.action('evacuate') - @validation.schema(evacuate.evacuate, "2.1", "2.12") + @validation.schema(evacuate.evacuate, "2.1", "2.13") @validation.schema(evacuate.evacuate_v214, "2.14", "2.28") @validation.schema(evacuate.evacuate_v2_29, "2.29") def _evacuate(self, req, id, body):