mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
clone: Don't error if disk doesn't have a backing volume
This commit is contained in:
parent
8a00e493b5
commit
b6630c2a63
@ -116,6 +116,7 @@ def do_we_default(conn, vol, path, ro, shared, devtype):
|
|||||||
elif not vol and path and not os.access(path, os.W_OK):
|
elif not vol and path and not os.access(path, os.W_OK):
|
||||||
info = append_str(info, _("No write access"))
|
info = append_str(info, _("No write access"))
|
||||||
|
|
||||||
|
if vol:
|
||||||
pool_type = vol.get_parent_pool().get_type()
|
pool_type = vol.get_parent_pool().get_type()
|
||||||
if pool_type == virtinst.StoragePool.TYPE_SCSI:
|
if pool_type == virtinst.StoragePool.TYPE_SCSI:
|
||||||
info = append_str(info, _("SCSI device"))
|
info = append_str(info, _("SCSI device"))
|
||||||
|
Loading…
Reference in New Issue
Block a user