Skip to content

Commit 59f5843

Browse files
sudo87dhslove
authored andcommitted
UI: Fix primary storage for datastore cluster and retain traffic labels during zone deployment (apache#11760)
1 parent 7ff8243 commit 59f5843

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ui/src/views/infra/zone/ZoneWizardAddResources.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export default {
406406
placeHolder: 'message.error.server',
407407
required: true,
408408
display: {
409-
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor']
409+
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor', 'datastorecluster', 'vmfs']
410410
}
411411
},
412412
{

ui/src/views/infra/zone/ZoneWizardLaunchZone.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,10 +1572,10 @@ export default {
15721572
}
15731573
path += '/' + this.prefillContent.primaryStorageVmfsDatastore
15741574
if (protocol === 'vmfs') {
1575-
url = this.vmfsURL('dummy', path)
1575+
url = this.vmfsURL(server, path)
15761576
}
15771577
if (protocol === 'datastorecluster') {
1578-
url = this.datastoreclusterURL('dummy', path)
1578+
url = this.datastoreclusterURL(server, path)
15791579
}
15801580
} else if (protocol === 'iscsi') {
15811581
let iqn = this.prefillContent?.primaryStorageTargetIQN || ''

ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export default {
414414
for (const index in net.traffics) {
415415
if (this.hypervisor === 'VMware') {
416416
delete this.physicalNetworks[idx].traffics[index].label
417-
} else {
417+
} else if (!net.traffics[index].label) {
418418
this.physicalNetworks[idx].traffics[index].label = ''
419419
}
420420
const traffic = net.traffics[index]

0 commit comments

Comments
 (0)