summaryrefslogtreecommitdiff
path: root/heat/engine/service.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-18 11:31:37 +0000
committerGerrit Code Review <review@openstack.org>2015-09-18 11:31:37 +0000
commit6a18429ead2afbcfac1540c318b231945f4c3d00 (patch)
treedb85d4b0284c0743e48da217887965ec877044ef /heat/engine/service.py
parent624972c475574cd01739ddf1e646cc2f331d571c (diff)
parent99670fb1cc7ba7c9d8d779f13c9f7309b5d21328 (diff)
downloadheat-6a18429ead2afbcfac1540c318b231945f4c3d00.tar.gz
Merge "Wire in files to template validate"
Diffstat (limited to 'heat/engine/service.py')
-rw-r--r--heat/engine/service.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/heat/engine/service.py b/heat/engine/service.py
index 398c1517d..20fe8c5f2 100644
--- a/heat/engine/service.py
+++ b/heat/engine/service.py
@@ -273,7 +273,7 @@ class EngineService(service.Service):
by the RPC caller.
"""
- RPC_API_VERSION = '1.16'
+ RPC_API_VERSION = '1.17'
def __init__(self, host, topic):
super(EngineService, self).__init__()
@@ -958,7 +958,7 @@ class EngineService(service.Service):
engine_id=engine_id)
@context.request_context
- def validate_template(self, cnxt, template, params=None):
+ def validate_template(self, cnxt, template, params=None, files=None):
"""
The validate_template method uses the stack parser to check
the validity of a template.
@@ -966,13 +966,14 @@ class EngineService(service.Service):
:param cnxt: RPC context.
:param template: Template of stack you want to create.
:param params: Stack Input Params
+ :param files: Files referenced from the template
"""
LOG.info(_LI('validate_template'))
if template is None:
msg = _("No Template provided.")
return webob.exc.HTTPBadRequest(explanation=msg)
- tmpl = templatem.Template(template)
+ tmpl = templatem.Template(template, files=files)
# validate overall template
try: