From c18e89ae0ff4c684f545291f1d489fffe17a32c6 Mon Sep 17 00:00:00 2001 From: catborise Date: Sat, 7 Nov 2026 23:42:55 +0300 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- static/js/instance_page.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/instance_page.js b/static/js/instance_page.js index b2c7eadf..95aa2ea0 100644 --- a/static/js/instance_page.js +++ b/static/js/instance_page.js @@ -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; });