Commit 80695e1f by Kálmán Viktor

vm: fix saving vms as templates with deleted parent

parent db42d716
......@@ -740,7 +740,7 @@ class SaveAsTemplateOperation(InstanceOperation):
'name': name or self._rename(,
'num_cores': self.instance.num_cores,
'owner': user,
'parent': self.instance.template, # Can be problem
'parent': self.instance.template or None, # Can be problem
'priority': self.instance.priority,
'ram_size': self.instance.ram_size,
'raw_data': self.instance.raw_data,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment