mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: Fix console_active() logic
This commit is contained in:
parent
3f532fe263
commit
79196cdfcf
@ -111,9 +111,9 @@ class ConnectionInfo(object):
|
||||
def console_active(self):
|
||||
if self.gsocket:
|
||||
return True
|
||||
if not self.gport:
|
||||
if (self.gport in [None, -1] and self.gtlsport in [None, -1]):
|
||||
return False
|
||||
return int(self.gport) == -1
|
||||
return True
|
||||
|
||||
|
||||
class _TunnelScheduler(object):
|
||||
@ -1321,7 +1321,7 @@ class vmmConsolePages(vmmGObjectUI):
|
||||
"guest's listen address." % ginfo.transport))
|
||||
return
|
||||
|
||||
if ginfo.console_active():
|
||||
if not ginfo.console_active():
|
||||
self.activate_unavailable_page(
|
||||
_("Graphical console is not yet active for guest"))
|
||||
self.schedule_retry()
|
||||
|
Loading…
Reference in New Issue
Block a user