virt-install: Drop --import and --nodisks collision

It doesn't work with '--disk none' and it's not very useful anyways
This commit is contained in:
Cole Robinson 2018-06-05 14:46:37 -04:00
parent b65a144db1
commit b85a2a9eb8
2 changed files with 0 additions and 3 deletions

View File

@ -685,7 +685,6 @@ c.add_compare("--pxe --print-step all", "simple-pxe") # Diskless PXE install
c.add_invalid("--pxe --virt-type bogus") # Bogus virt-type
c.add_invalid("--pxe --arch bogus") # Bogus arch
c.add_invalid("--paravirt --pxe") # PXE w/ paravirt
c.add_invalid("--import") # Import with no disks
c.add_invalid("--livecd") # LiveCD with no media
c.add_invalid("--pxe --os-variant farrrrrrrge") # Bogus --os-variant
c.add_invalid("--pxe --boot menu=foobar")

View File

@ -540,8 +540,6 @@ def build_installer(options, conn, virt_type):
elif virt_type == "exe":
instclass = virtinst.ContainerInstaller
elif options.import_install or options.boot:
if options.import_install and options.nodisks:
fail(_("A disk device must be specified with --import."))
options.import_install = True
instclass = virtinst.ImportInstaller
elif options.xmlonly: