From f65592d6b9bba7ccf64064d863f3b833b6906d86 Mon Sep 17 00:00:00 2001 From: Bo Wang Date: Sat, 5 Mar 2016 11:49:46 +0800 Subject: [PATCH] Add "data_required=True" check into heat rest api To validate heat templates it need pass parameters. Add this check into rest/heat.py to discover error as early as possible Change-Id: I55468535066104f05d85b146a93023f3a90dcf2d --- openstack_dashboard/api/rest/heat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/api/rest/heat.py b/openstack_dashboard/api/rest/heat.py index aeb9e33df0..19fdca4e75 100644 --- a/openstack_dashboard/api/rest/heat.py +++ b/openstack_dashboard/api/rest/heat.py @@ -25,7 +25,7 @@ class Validate(generic.View): """ url_regex = r'heat/validate/$' - @rest_utils.ajax() + @rest_utils.ajax(data_required=True) def post(self, request): """Validate a template