OK really fix the bugs

This commit is contained in:
2018-06-15 01:50:39 -04:00
parent 60fba72976
commit 04918b8a4f
2 changed files with 4 additions and 4 deletions

View File

@ -48,8 +48,8 @@ class VMInstance:
@zk.DataWatch('/domains/{}/state'.format(self.domuuid))
def watch_state(data, stat, event=""):
# If we get a delete state, just terminate outselves
if data.decode('ascii') == 'delete':
self.__delete__
if data == None:
return
# Otherwise perform a management command
else:
self.manage_vm_state()