qvm-start-gui: simplify log info for start_gui function

This commit is contained in:
Frédéric Pierret (fepitre) 2019-10-20 15:53:32 +02:00
parent e63510b4cf
commit 411e2884cc
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -252,10 +252,9 @@ class GUILauncher(object):
one for target AppVM is running. one for target AppVM is running.
:param monitor_layout: monitor layout configuration :param monitor_layout: monitor layout configuration
""" """
guivm_name = getattr(vm, 'guivm', None) guivm = getattr(vm, 'guivm', None)
if guivm_name != vm.app.get_local_name(): if guivm != vm.app.get_local_name():
vm.log.info( vm.log.info('GUI connected to {}. Skipping.'.format(guivm))
'{} has GuiVM {}. Skipping.'.format(vm.name, guivm_name))
return return
if vm.virt_mode == 'hvm': if vm.virt_mode == 'hvm':