Commit d228d60b by Őry Máté

vm: add owner level for instances created

parent f38a8767
...@@ -282,6 +282,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel): ...@@ -282,6 +282,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
# save instance # save instance
inst.clean() inst.clean()
inst.save() inst.save()
inst.set_level(inst.owner, 'owner')
# create related entities # create related entities
inst.disks.add(*[disk.get_exclusive() for disk in disks]) inst.disks.add(*[disk.get_exclusive() for disk in disks])
......
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