From b15464043384c613ab733feb234b026219756071 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Mon, 21 Aug 2017 11:20:19 +0200 Subject: [PATCH] Test if property is a get_input before treating it as such Change-Id: I353b738e728073fd197faca33b5702b95d0ab3e4 --- translator/hot/tosca_translator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translator/hot/tosca_translator.py b/translator/hot/tosca_translator.py index b9d4c775..639c5901 100644 --- a/translator/hot/tosca_translator.py +++ b/translator/hot/tosca_translator.py @@ -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: