From 3648238cef8e86385ec2af24a2237327c3de8361 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 12:26:04 -0400 Subject: [PATCH] Forgot some critical shit --- VMInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VMInstance.py b/VMInstance.py index ae441723..6ff346d4 100644 --- a/VMInstance.py +++ b/VMInstance.py @@ -24,11 +24,13 @@ class VMInstance: # Watch for changes to the hypervisor field in Zookeeper @zk.DataWatch(self.zkey + '/hypervisor') def watch_hypervisor(data, stat, event=""): + self.hypervisor = data.decode('ascii') self.manage_vm_state() # Watch for changes to the state field in Zookeeper @zk.DataWatch(self.zkey + '/state') def watch_state(data, stat, event=""): + self.state = data.decode('ascii') self.manage_vm_state() # Get data functions