Merge "Test if property is a get_input before treating it as such"

This commit is contained in:
Jenkins 2017-09-16 15:45:34 +00:00 committed by Gerrit Code Review
commit 74844f97a5
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ class TOSCATranslator(object):
def _resolve_input(self):
for n in self.tosca.nodetemplates:
for node_prop in n.get_properties_objects():
if isinstance(node_prop.value, dict):
if isinstance(node_prop.value, dict) \
and 'get_input' in node_prop.value:
try:
self.parsed_params[node_prop.value['get_input']]
except Exception: