Commit af8f3f28 by Kálmán Viktor

vm: fix get() error

parent c74efa2b
...@@ -366,7 +366,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel): ...@@ -366,7 +366,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel):
# save instance # save instance
inst.save() inst.save()
# create related entities # create related entities
disks = kwargs.get('disks', default=template.disks.all()) disks = kwargs.get('disks', template.disks.all())
for disk in disks: for disk in disks:
inst.disks.add(disk.get_exclusive()) inst.disks.add(disk.get_exclusive())
......
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