summaryrefslogtreecommitdiffstats
path: root/app/toscalib/utils/tosca_operate.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/toscalib/utils/tosca_operate.py')
-rw-r--r--app/toscalib/utils/tosca_operate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/toscalib/utils/tosca_operate.py b/app/toscalib/utils/tosca_operate.py
index bc67310..3f47d93 100644
--- a/app/toscalib/utils/tosca_operate.py
+++ b/app/toscalib/utils/tosca_operate.py
@@ -42,6 +42,8 @@ def _create_new_template(template, type_name, prefix_name = None):
new_temp = copy.deepcopy(db.TEMPLATES[type_name])
new_temp._update_prefix(prefix)
+ new_temp._update_get_node_name()
+ new_temp._update_template(template)
template.inputs.update(new_temp.inputs)
template.outputs.update(new_temp.outputs)
template.node_dict.update(new_temp.node_dict)