Move appliance and template management code in their own classes.

This commit is contained in:
grossmj committed 2019-01-14 16:09:06 +07:00
1 parent 5a3929f01a
commit 8360ae98b1
10 files changed
+340 -224

No files matched your search

+1 -1
View File
@@ -481,7 +481,7 @@ class Project:
Create a node from a template.
"""
try:
template = copy.deepcopy(self.controller.templates[template_id].settings)
template = copy.deepcopy(self.controller.template_manager.templates[template_id].settings)
except KeyError:
msg = "Template {} doesn't exist".format(template_id)
log.error(msg)