Test if property is a get_input before treating it as such

Change-Id: I353b738e728073fd197faca33b5702b95d0ab3e4
This commit is contained in:
Mathieu Velten 2017-08-21 11:20:19 +02:00
parent 0640edfa3b
commit b154640433
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: