Commit 04d51cf0 by Bach Dániel

fixes #98

parent b4c2e24e
...@@ -632,6 +632,8 @@ class Instance(models.Model): ...@@ -632,6 +632,8 @@ class Instance(models.Model):
def restart(self): def restart(self):
self._change_state("RESET") self._change_state("RESET")
self.waiting = False
self.save()
def renew(self, which='both'): def renew(self, which='both'):
if which in ['suspend', 'both']: if which in ['suspend', 'both']:
......
...@@ -24,4 +24,6 @@ class UpdateInstanceStateTask(Task): ...@@ -24,4 +24,6 @@ class UpdateInstanceStateTask(Task):
print 'nincs ilyen' print 'nincs ilyen'
return return
inst.update_state() inst.update_state()
inst.waiting = False
inst.save()
print inst.state print inst.state
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