Skip to content

Commit 50e4ebc

Browse files
Add vddk support label to hosts list in import instance form
1 parent 5740e8a commit 50e4ebc

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

ui/src/views/tools/ImportUnmanagedInstance.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,16 @@ export default {
10311031
if (host.details['host.ovftool.version']) {
10321032
host.name = host.name + ' (ovftool=' + host.details['host.ovftool.version'] + ')'
10331033
}
1034+
if (this.form.usevddk) {
1035+
if (host.details['host.vddk.support'] === 'true' || host.details['host.vddk.support'] === true) {
1036+
host.name = host.name + ' (VDDK=' + this.$t('label.supported') + ')'
1037+
} else {
1038+
host.name = host.name + ' (VDDK=' + this.$t('label.not.supported') + ')'
1039+
}
1040+
if (host.details['host.vddk.version']) {
1041+
host.name = host.name + ' (vddk=' + host.details['host.vddk.version'] + ')'
1042+
}
1043+
}
10341044
})
10351045
})
10361046
},
@@ -1130,12 +1140,16 @@ export default {
11301140
this.form.forcemstoimportvmfiles = false
11311141
this.switches.forceConvertToPool = true
11321142
this.switches.forceMsToImportVmFiles = false
1143+
// Refresh host list to show VDDK support details
1144+
this.fetchKvmHostsForConversion()
11331145
} else {
11341146
this.form.forceconverttopool = false
11351147
this.switches.forceConvertToPool = false
11361148
this.selectedStorageOptionForConversion = null
11371149
this.selectedStoragePoolForConversion = null
11381150
this.showStoragePoolsForConversion = false
1151+
// Refresh host list to remove VDDK support details
1152+
this.fetchKvmHostsForConversion()
11391153
}
11401154
this.resetStorageOptionsForConversion()
11411155
},

0 commit comments

Comments
 (0)