We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d32ddc commit a7efa75Copy full SHA for a7efa75
ui/src/views/infra/ClusterAdd.vue
@@ -381,8 +381,15 @@ export default {
381
if (values.password) {
382
data.password = values.password
383
}
384
- if (values.hypervisor === 'External' && values.extensionid) {
385
- data.extensionid = values.extensionid
+ if (values.hypervisor === 'External') {
+ if (values.extensionid) {
386
+ data.extensionid = values.extensionid
387
+ }
388
+ if (values.externaldetails) {
389
+ Object.entries(values.externaldetails).forEach(([k, v]) => {
390
+ data['externaldetails[0].' + k] = v
391
+ })
392
393
394
postAPI('addCluster', data).then(response => {
395
const cluster = response.addclusterresponse.cluster[0] || {}
0 commit comments