提交 ae4330a8 编写于 作者: Z zhencliu

Remove images in two ways

Signed-off-by: NZhenchao Liu <zhencliu@redhat.com>
上级 363bb4b6
......@@ -210,6 +210,10 @@ class BlockdevBaseTest(object):
"""
for img in set(self.trash):
try:
# A QemuImg object
img.remove()
except AttributeError:
# A StorageVolume object
sp_admin.remove_volume(img)
except Exception as e:
logging.warn(str(e))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册