From 9e2c35efa8df0ba3597b9f9e4e33b706eb86dbe9 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 4 May 2012 10:09:41 -0700 Subject: [PATCH] ValidateTemplate API call framework This is a start on issue #111 While no actual validation is done by this patch, this patch introduces the framework for validating in each of the resource types and returning an appropriate error when a validation error occurs. Signed-off-by: Steven Dake --- bin/heat | 11 ++++++++++- heat/api/v1/stacks.py | 6 +++++- heat/engine/eip.py | 6 ++++++ heat/engine/instance.py | 6 ++++++ heat/engine/manager.py | 11 ++++++----- heat/engine/parser.py | 24 +++++++++++++++++++++--- heat/engine/resources.py | 7 +++++++ heat/engine/security_group.py | 6 ++++++ heat/engine/volume.py | 6 ++++++ heat/engine/wait_condition.py | 6 ++++++ 10 files changed, 79 insertions(+), 10 deletions(-) diff --git a/bin/heat b/bin/heat index 6c812295..fa55ad51 100755 --- a/bin/heat +++ b/bin/heat @@ -61,7 +61,8 @@ def template_validate(options, arguments): it is in the correct format. Usage: heat validate \\ - [--template-file=