提交 262326ac 编写于 作者: C Cleber Rosa 提交者: Lucas Meneghel Rodrigues

tests/unattended_install.py: fix virtio related attribute names

There's a typo in `virtio_nework_path` (missing 't'), and for
`virtio_network_installer`, it's missing '_path'.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 fb189175
......@@ -134,7 +134,7 @@ class UnattendedInstallConfig(object):
if self.install_virtio == 'yes':
v_attributes = ['virtio_floppy', 'virtio_storage_path',
'virtio_network_path', 'virtio_oemsetup_id',
'virtio_network_installer']
'virtio_network_installer_path']
for va in v_attributes:
setattr(self, va, params.get(va, ''))
......@@ -262,7 +262,7 @@ class UnattendedInstallConfig(object):
# Now, replacing the virtio network driver path, under double quotes
if self.install_virtio == 'yes':
parser.set('Unattended', 'OemPnPDriversPath',
'"%s"' % self.virtio_nework_path)
'"%s"' % self.virtio_network_path)
else:
parser.remove_option('Unattended', 'OemPnPDriversPath')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册