Commit 0c033922 by Kálmán Viktor

vm: temp fix in Instance model

parent d06a2799
......@@ -362,12 +362,13 @@ class Instance(VirtualMachineDescModel, TimeStampedModel):
kwargs.setdefault('raw_data', template.raw_data)
kwargs.setdefault('access_method', template.access_method)
disks = kwargs.get('disks', template.disks.all())
# create instance and do additional setup
inst = cls(**kwargs)
# save instance
# create related entities
disks = kwargs.get('disks', template.disks.all())
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