]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
Fix the evacuate API without json-schema validation in 2.13
authorHe Jie Xu <hejie.xu@intel.com>
Tue, 18 Apr 2017 11:40:50 +0000 (19:40 +0800)
committerHe Jie Xu <hejie.xu@intel.com>
Thu, 20 Apr 2017 15:28:43 +0000 (23:28 +0800)
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
(cherry picked from commit c97c44cdfb35ecbf473ac5c98c2d3a4e9871ee8c)

nova/api/openstack/compute/evacuate.py

index 1434e704d1f2657097cd63a2f8adf81606d97a34..cd847fad706f951e29d3b0911ca7925748945588 100644 (file)
@@ -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):