提交 8e4a2b0b 编写于 作者: Q Qianqian Zhu

block_devices_plug: Fix variable referenced before assignment

Signed-off-by: NQianqian Zhu <qizhu@redhat.com>
上级 d033fa75
......@@ -275,6 +275,7 @@ class BlockDevicesPlug(object):
with _LOCK:
self.vm.devices.set_dirty()
qdev_out = ''
if isinstance(device, qdevices.QDevice):
dev_bus = device.get_param('bus')
if bus is None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册