mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-26 08:55:13 +03:00
console: Move embeddable_graphics() to console.py
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Signed-off-by: Weishi Li <liweishi@kylinos.cn> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
0d3b7f673f
commit
9c242ef79c
@ -208,10 +208,6 @@ class vmmConfig(object):
|
||||
def get_ui_dir(self):
|
||||
return self.ui_dir
|
||||
|
||||
def embeddable_graphics(self):
|
||||
ret = ["vnc", "spice"]
|
||||
return ret
|
||||
|
||||
def inspection_supported(self):
|
||||
if not vmmInspection.libguestfs_installed():
|
||||
return False # pragma: no cover
|
||||
|
@ -293,6 +293,10 @@ class _ConsoleMenu:
|
||||
return True
|
||||
return False
|
||||
|
||||
def embeddable_graphics(self):
|
||||
ret = ["vnc", "spice"]
|
||||
return ret
|
||||
|
||||
|
||||
class vmmConsolePages(vmmGObjectUI):
|
||||
"""
|
||||
@ -700,7 +704,7 @@ class vmmConsolePages(vmmGObjectUI):
|
||||
_("Graphical console not configured for guest"))
|
||||
return
|
||||
|
||||
if ginfo.gtype not in self.config.embeddable_graphics():
|
||||
if ginfo.gtype not in self._consolemenu.embeddable_graphics():
|
||||
log.debug("Don't know how to show graphics type '%s' "
|
||||
"disabling console page", ginfo.gtype)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user