提交 e059a289 编写于 作者: X Xiaoqing Wei 提交者: Lucas Meneghel Rodrigues

tests.unattended_install: should not generate autoyast.iso when use floppy_ks

Otherwise, unattended_install will generate an iso
but try to use a floppy, causing the test to fail.
Signed-off-by: NXiaoqing Wei <xwei@redhat.com>
上级 aed9eee3
......@@ -690,7 +690,8 @@ class UnattendedInstallConfig(object):
if "autoyast" in self.kernel_params:
# SUSE autoyast install
dest_fname = "autoinst.xml"
if self.cdrom_unattended:
if (self.cdrom_unattended and
self.params.get('unattended_delivery_method') == 'cdrom'):
boot_disk = utils_disk.CdromDisk(self.cdrom_unattended,
self.tmpdir)
elif self.floppy:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册