mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(instances): a new VM's existing volume or template is taken from the chosen pool
The create job looked volumes up by name in every active pool and took the first match, so a volume of the same name in another pool could be attached or copied in place of the chosen one. The form now sends each existing volume as pool/volume and the template's pool, and the job looks each up in its own pool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
d2383be914
commit
8f09812b7d
7 changed files with 41 additions and 22 deletions
|
|
@ -155,7 +155,8 @@ function load_list(list, url, fill) {
|
|||
function load_volumes(pool) {
|
||||
images_control.clearOptions(); // keeps the chosen volumes
|
||||
return load_list(images_control, volumes_url(pool), function (data) {
|
||||
data['vols'].forEach(item => images_control.addOption({value: item, text: item}));
|
||||
// a pool's volumes have their own names; the chosen ones may come from several pools
|
||||
data['vols'].forEach(item => images_control.addOption({value: pool + "/" + item, text: item}));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue