Commit 8b3c49e3 by Bach Dániel

vm: remove disk.set_level from SaveAsTemplateOperation

parent a170119d
...@@ -528,9 +528,6 @@ class SaveAsTemplateOperation(InstanceOperation): ...@@ -528,9 +528,6 @@ class SaveAsTemplateOperation(InstanceOperation):
for disk in self.instance.disks.all(): for disk in self.instance.disks.all():
self.disks.append(__try_save_disk(disk)) self.disks.append(__try_save_disk(disk))
for disk in self.disks:
disk.set_level(user, 'owner')
# create template and do additional setup # create template and do additional setup
tmpl = InstanceTemplate(**params) tmpl = InstanceTemplate(**params)
tmpl.full_clean() # Avoiding database errors. tmpl.full_clean() # Avoiding database errors.
......
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