virt-install: Fix warning about missing --os-variant

We always at least have os_variant == "generic" now
This commit is contained in:
Cole Robinson 2016-04-07 17:36:53 -04:00
parent b45f676086
commit f99be58ab1

View File

@ -535,7 +535,8 @@ def show_warnings(options, guest):
logging.warn(_("The guest's network configuration does not support "
"PXE"))
if not guest.os_variant and options.distro_variant != "none":
if (guest.os_variant == "generic" and
options.distro_variant not in ["none", "generic"]):
logging.warn(_("No operating system detected, VM performance may "
"suffer. Specify an OS with --os-variant for optimal results."))