Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit ae43ef1

Browse files
committed
virt-clone: Don't warn about overwrite of block device
Since nearly every manually specified block path is going to already exist, don't bother warning about it.
1 parent 5b419b2 commit ae43ef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virtinst/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def disk_prompt(prompt_txt, arg_dict, warn_overwrite=False, prompt_size=True,
493493
askmsg = _("Do you really want to use this disk (yes or no)")
494494

495495
# Prompt if disk file already exists and preserve mode is not used
496-
if warn_overwrite and path_exists:
496+
if (path_exists and dev.type == dev.TYPE_FILE and warn_overwrite):
497497
msg = (_("This will overwrite the existing path '%s'" %
498498
dev.path))
499499
if not prompt_for_yes_or_no(msg, askmsg):

0 commit comments

Comments
 (0)