|
@@ -312,8 +312,8 @@ def boot(self, img, extra_args=[]):
|
|
self._guest = guest
|
|
self._guest = guest
|
|
# Init console so we can start consuming the chars.
|
|
# Init console so we can start consuming the chars.
|
|
self.console_init()
|
|
self.console_init()
|
|
- usernet_info = guest.qmp("human-monitor-command",
|
|
|
|
- command_line="info usernet").get("return")
|
|
|
|
|
|
+ usernet_info = guest.cmd("human-monitor-command",
|
|
|
|
+ command_line="info usernet")
|
|
self.ssh_port = get_info_usernet_hostfwd_port(usernet_info)
|
|
self.ssh_port = get_info_usernet_hostfwd_port(usernet_info)
|
|
if not self.ssh_port:
|
|
if not self.ssh_port:
|
|
raise Exception("Cannot find ssh port from 'info usernet':\n%s" % \
|
|
raise Exception("Cannot find ssh port from 'info usernet':\n%s" % \
|