Add sleep after write to QEMU monitor (to work with new QEMU versions)

pull/62/head
Dmitry Shmygov 10 years ago
parent 1f615430ae
commit 9cedb1cc99

@ -27,6 +27,7 @@ import subprocess
import shlex
import ntpath
import telnetlib
import time
from gns3server.config import Config
from gns3dms.cloud.rackspace_ctrl import get_provider
@ -912,6 +913,7 @@ class QemuVM(object):
tn = telnetlib.Telnet(self._monitor_host, self._monitor, timeout=timeout)
try:
tn.write(command.encode('ascii') + b"\n")
time.sleep(0.1)
except OSError as e:
log.warn("Could not write to QEMU monitor: {}".format(e))
tn.close()

Loading…
Cancel
Save