Commit 55a0c9ea by Őry Máté

one: add post-save operations

parent ef5fc895
...@@ -494,7 +494,9 @@ class Instance(models.Model): ...@@ -494,7 +494,9 @@ class Instance(models.Model):
if len(disks) != 1: if len(disks) != 1:
return false return false
self.template.disk_id = disks[0].id self.template.disk_id = disks[0].id
self.template.status = 'READY'
self.template.save() self.template.save()
self.host.delete()
return True return True
......
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