提交 9b3b30f7 编写于 作者: Z zhencliu

QemuImg.create should take the image specified params as its argument

Signed-off-by: NZhenchao Liu <zhencliu@redhat.com>
上级 571265b8
......@@ -53,9 +53,11 @@ class NBDExportImage(object):
result = process.run(self._image_params['create_image_cmd'],
ignore_status=True, shell=True)
elif not self._image_params.get_boolean("force_create_image"):
_, result = qemu_storage.QemuImg(self._image_params,
data_dir.get_data_dir(),
self._tag).create(self._params)
_, result = qemu_storage.QemuImg(
self._image_params,
data_dir.get_data_dir(),
self._tag
).create(self._image_params)
if result.exit_status != 0:
raise exceptions.TestFail('Failed to create image, error: %s'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册