mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(instances): the Migrate tab keeps disks of one file name apart
Two disks of a VM with the same file name in different directories were both offered the same destination pool by default. The form was sent, and the migration job refused it only then: both copies would be one file. The plan now gives each such disk, by default, a pool no earlier disk of that name is copied into, and says under its choice that another disk has the file name. A choice that still puts them in one pool is refused by the job, as before.
This commit is contained in:
parent
394e659538
commit
9bcc6f714b
4 changed files with 32 additions and 7 deletions
|
|
@ -23,6 +23,7 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
</select>
|
||||
{% if disk.same_name %}<div class="form-text">{% trans "Another disk of the VM has this file name: copy them to different pools." %}</div>{% endif %}
|
||||
{% elif disk.refusal %}
|
||||
<p class="small text-danger mb-0" data-refused>{% blocktrans with reason=disk.refusal %}Cannot be copied: {{ reason }}{% endblocktrans %}</p>
|
||||
{% elif pools %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue