1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-03 08:21:58 +03:00

examples/consolecallback: Add var to save callback

> examples/consolecallback.py:98: error: "Console" has no attribute "stdin_watch"

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2020-04-27 11:03:55 +02:00
committed by Philipp Hahn
parent 77f57cd5ec
commit 55415a4870

View File

@ -23,6 +23,7 @@ class Console(object):
self.connection.domainEventRegister(lifecycle_callback, self)
self.stream = None
self.run_console = True
self.stdin_watch = -1
logging.info("%s initial state %d, reason %d",
self.uuid, self.state[0], self.state[1])