Fix bug and add optimizations when connecting and sending commands to QEMU monitor after starting a VM. Fixes #2336.

This commit is contained in:
grossmj
2018-03-23 00:07:32 +07:00
parent 135bbe8825
commit a40fdb3641
2 changed files with 63 additions and 9 deletions

View File

@ -90,7 +90,7 @@ class DynamipsHypervisor:
if not connection_success:
raise DynamipsError("Couldn't connect to hypervisor on {}:{} :{}".format(host, self._port, last_exception))
else:
log.info("Connected to Dynamips hypervisor after {:.4f} seconds".format(time.time() - begin))
log.info("Connected to Dynamips hypervisor on {}:{} after {:.4f} seconds".format(host, self._port, time.time() - begin))
try:
version = yield from self.send("hypervisor version")