summaryrefslogtreecommitdiff
path: root/virt-install
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-11-24 17:30:49 -0500
committerCole Robinson <crobinso@redhat.com>2019-11-24 18:12:06 -0500
commit1676f05a591207be21979eaeace45f593b9f8605 (patch)
treed354fcad9f8ea87831a42595f8f8cc53e3b2fcb5 /virt-install
parent4ef519229da8181f3d9f9a0fb99fd3f413dd9ff9 (diff)
downloadvirt-manager-1676f05a591207be21979eaeace45f593b9f8605.tar.gz
virt-install: Split out show_console_warnings
And only call it once console handling is in play Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virt-install')
-rwxr-xr-xvirt-install9
1 files changed, 5 insertions, 4 deletions
diff --git a/virt-install b/virt-install
index f569c46a..a51c78e4 100755
--- a/virt-install
+++ b/virt-install
@@ -319,7 +319,7 @@ def validate_required_options(options, guest, installer):
fail(msg)
-def _show_nographics_warnings(options, guest, installer):
+def show_console_warnings(options, guest, installer):
if guest.devices.graphics:
return
if not options.autoconsole:
@@ -350,7 +350,7 @@ def _show_memory_warnings(guest):
"Were you trying to specify GiB?"), rammb)
-def show_warnings(options, guest, installer, osdata):
+def show_guest_warnings(options, guest, osdata):
if options.pxe and not supports_pxe(guest):
log.warning(_("The guest's network configuration does not support "
"PXE"))
@@ -365,7 +365,6 @@ def show_warnings(options, guest, installer, osdata):
"suffer. Specify an OS with --os-variant for optimal results."))
_show_memory_warnings(guest)
- _show_nographics_warnings(options, guest, installer)
##########################
@@ -568,7 +567,7 @@ def build_guest_instance(conn, options):
cli.validate_disk(disk)
validate_required_options(options, guest, installer)
- show_warnings(options, guest, installer, osdata)
+ show_guest_warnings(options, guest, osdata)
return guest, installer
@@ -634,6 +633,8 @@ class WaitHandler:
def start_install(guest, installer, options):
+ show_console_warnings(options, guest, installer)
+
conscb = None
if options.autoconsole:
conscb = cli.get_console_cb(guest)