fix: shall update hotpluggable when change to a non-iso image (#713)

Signed-off-by: Tim Liou <tim.liou@suse.com>
This commit is contained in:
Tim Liou 2026-02-23 17:08:33 +08:00 committed by GitHub
parent da83f04b6c
commit 93f027a57c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,12 +297,13 @@ export default {
if (isIsoImage) {
this.value['type'] = 'cd-rom';
this.value['bus'] = 'sata';
this.updateHotpluggable();
} else {
this.value['type'] = 'disk';
this.value['bus'] = 'virtio';
}
this.updateHotpluggable();
if (imageSize) {
let imageSizeGiB = Math.ceil(imageSize / 1024 / 1024 / 1024);