mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
virt-install: fix condition that detect if console is present
Function get_devices() always returns a list, if there is no requested device the list is empty. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
ef14f04226
commit
588c2d4481
@ -502,7 +502,7 @@ def _show_nographics_warnings(options, guest):
|
||||
# Trying --location --nographics with console connect. Warn if
|
||||
# they likely won't see any output.
|
||||
|
||||
if not guest.get_devices("console"):
|
||||
if len(guest.get_devices("console")) = 0:
|
||||
logging.warn(_("No --console device added, you likely will not "
|
||||
"see text install output from the guest."))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user