summaryrefslogtreecommitdiff
path: root/heat/engine/resource.py
diff options
context:
space:
mode:
authorAngus Salkeld <asalkeld@mirantis.com>2015-08-05 13:30:26 +1000
committerAngus Salkeld <asalkeld@mirantis.com>2015-08-05 13:30:26 +1000
commitb897e7786f1bc29fa1cb75f289328267e0727ca1 (patch)
tree2b6b695942775e3e3df3d52a3667925d793f2b7a /heat/engine/resource.py
parentf572b71298c145ce5f0d7d822074e62a0b81ebb7 (diff)
downloadheat-b897e7786f1bc29fa1cb75f289328267e0727ca1.tar.gz
Validate TemplateResource schema when based on other templates
Currently this is only done if you override a python resource and not if you override a template resource. Closes-bug: #1479565 Change-Id: I29f65d5058c8c2e8b04cb1fcbcb4956040ec908a
Diffstat (limited to 'heat/engine/resource.py')
-rw-r--r--heat/engine/resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/engine/resource.py b/heat/engine/resource.py
index 413dd834d..62550b4da 100644
--- a/heat/engine/resource.py
+++ b/heat/engine/resource.py
@@ -165,7 +165,8 @@ class Resource(object):
registry = stack.env.registry
try:
ResourceClass = registry.get_class(definition.resource_type,
- resource_name=name)
+ resource_name=name,
+ files=stack.t.files)
except exception.TemplateNotFound:
ResourceClass = template_resource.TemplateResource