Commit af8f3f28 by Kálmán Viktor

vm: fix get() error

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