mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
console: Remove console_active check
This is largely left over from the old days when a xen VM could start up but still take a bit of time for the allocated VNC port to be reflected in the XML. This may still be an issue with old old xen, but I suspect it's not relevant for anything modern, and it causes some issues with listen=none behavior that spice supports. Just drop it and see if anyone complains
This commit is contained in:
parent
c4f62ff028
commit
0a1d22f395
@ -652,11 +652,6 @@ class vmmConsolePages(vmmGObjectUI):
|
||||
"guest's listen address." % ginfo.transport))
|
||||
return
|
||||
|
||||
if not ginfo.console_active():
|
||||
self._activate_unavailable_page(
|
||||
_("Graphical console is not yet active for guest"))
|
||||
return
|
||||
|
||||
self._activate_unavailable_page(
|
||||
_("Connecting to graphical console for guest"))
|
||||
|
||||
|
@ -98,12 +98,6 @@ class ConnectionInfo(object):
|
||||
(self.gtype, self.transport, self._connhost, self.connuser,
|
||||
self._connport, self.gaddr, self.gport, self.gtlsport,
|
||||
self.gsocket))
|
||||
def console_active(self):
|
||||
if self.gsocket:
|
||||
return True
|
||||
if (self.gport in [None, -1] and self.gtlsport in [None, -1]):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
class _TunnelScheduler(object):
|
||||
|
Loading…
Reference in New Issue
Block a user