提交 a7490e30 编写于 作者: L Lukáš Doktor

pci_devices: Cope with the changed return value of make_create_command

The make_create_command used to return "devices", but now it returns
"tuple(make_create_devices, spice_options)". Let's allow both by
checking the type.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 d80959d8
......@@ -296,6 +296,8 @@ def run(test, params, env):
env_process.preprocess_vm(test, params, env, params["main_vm"])
vm = env.get_vm(params["main_vm"])
qdev = vm.make_create_command() # parse params into qdev
if isinstance(qdev, tuple):
qdev = qdev[0]
error.context("Getting main PCI bus info")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册