Commit ca8676dd by Dudás Ádám

vm: call clean to ensure running validations

parent b81b0298
...@@ -365,6 +365,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel): ...@@ -365,6 +365,7 @@ class Instance(VirtualMachineDescModel, TimeStampedModel):
# create instance and do additional setup # create instance and do additional setup
inst = cls(**kwargs) inst = cls(**kwargs)
# save instance # save instance
inst.clean()
inst.save() inst.save()
# create related entities # create related entities
for disk in disks: 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