mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
fix(instances): the clone form names each extensionless disk apart
A disk name without an extension that did not start with the VM's name, as LVM volumes have, became the clone's name alone: two such disks got the same name and the clone failed on the second. Each is the clone's name and the disk's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
4ee88d6767
commit
c18e89ae0f
1 changed files with 2 additions and 3 deletions
|
|
@ -122,10 +122,9 @@
|
|||
} else if (disk_name.lastIndexOf('.') > -1 && disk_dot_suffix.length <= 7) {
|
||||
disk_dot.pop();
|
||||
image = new_vname + "-" + disk_dot.join('-') + "." + disk_dot_suffix;
|
||||
} else if (new_vname != disk_name) {
|
||||
image = new_vname;
|
||||
} else {
|
||||
image = new_vname + '-clone';
|
||||
// a volume of an LVM pool has no extension: two of them keep their names apart
|
||||
image = new_vname + "-" + disk_name;
|
||||
}
|
||||
input.value = image;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue