提交 0f7a2eda 编写于 作者: Y Yongxue Hong

block_devices_plug: Fix "TypeError: _create_devices()"

Fix "TypeError: _create_devices() takes from 2 to 3 positional
arguments".
Signed-off-by: NYongxue Hong <yhong@redhat.com>
上级 3f13da5d
......@@ -382,7 +382,7 @@ class BlockDevicesPlug(object):
"""
logging.info("Start to hotplug devices \"%s\" by monitor %s." % (
' '.join(images), monitor.name))
args = images if bus is None else (images, {'aobject': bus.aobject})
args = (images, {'aobject': 'pci.0' if bus is None else bus.aobject})
self._create_devices(*args)
self._plug_devs(HOTPLUG, self._hotplugged_devs, monitor, bus)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册