summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tosca2heat/heat-translator/translator/hot/translate_node_templates.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tosca2heat/heat-translator/translator/hot/translate_node_templates.py b/tosca2heat/heat-translator/translator/hot/translate_node_templates.py
index d8e7e48..f32d42b 100644
--- a/tosca2heat/heat-translator/translator/hot/translate_node_templates.py
+++ b/tosca2heat/heat-translator/translator/hot/translate_node_templates.py
@@ -195,12 +195,16 @@ class TranslateNodeTemplates(object):
if isinstance(value, dict):
for node_name in value.values():
for n in self.nodetemplates:
- if n.name == node_name:
+ if n.name == node_name and \
+ n.is_derived_from(
+ "tosca.nodes.BlockStorage"):
volume_name = node_name
break
else: # unreachable code !
for n in self.nodetemplates:
- if n.name == node_name:
+ if n.name == value and \
+ n.is_derived_from(
+ "tosca.nodes.BlockStorage"):
volume_name = node_name
break