More debug
This commit is contained in:
parent
e4cb3d6a71
commit
1ab3145a76
|
@ -45,6 +45,7 @@ class VMInstance:
|
||||||
# Watch for changes to the hypervisor field in Zookeeper
|
# Watch for changes to the hypervisor field in Zookeeper
|
||||||
@zk.DataWatch('/domains/{}/hypervisor'.format(self.domuuid))
|
@zk.DataWatch('/domains/{}/hypervisor'.format(self.domuuid))
|
||||||
def watch_hypervisor(data, stat, event=""):
|
def watch_hypervisor(data, stat, event=""):
|
||||||
|
print(data.decode('ascii'))
|
||||||
try:
|
try:
|
||||||
self.hypervisor = data.decode('ascii')
|
self.hypervisor = data.decode('ascii')
|
||||||
except:
|
except:
|
||||||
|
@ -54,6 +55,7 @@ class VMInstance:
|
||||||
# Watch for changes to the state field in Zookeeper
|
# Watch for changes to the state field in Zookeeper
|
||||||
@zk.DataWatch('/domains/{}/state'.format(self.domuuid))
|
@zk.DataWatch('/domains/{}/state'.format(self.domuuid))
|
||||||
def watch_state(data, stat, event=""):
|
def watch_state(data, stat, event=""):
|
||||||
|
print(data.decode('ascii'))
|
||||||
try:
|
try:
|
||||||
self.state = data.decode('ascii')
|
self.state = data.decode('ascii')
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue