Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit b937056

Browse files
Pearl1594Pearl Dsilva
andauthored
Fix empty server details for SharedMountPoint protocol (#891)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
1 parent fa7da36 commit b937056

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/views/infra/AddPrimaryStorage.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ export default {
601601
params['details[' + index.toString() + '].' + key] = smbParams[key]
602602
})
603603
} else if (values.protocol === 'PreSetup' && this.hypervisorType !== 'VMware') {
604+
server = 'localhost'
604605
url = this.presetupURL(server, path)
605606
} else if (values.protocol === 'PreSetup' && this.hypervisorType === 'VMware') {
606607
path = values.vCenterDataCenter
@@ -619,6 +620,7 @@ export default {
619620
} else if (values.protocol === 'ocfs2') {
620621
url = this.ocfs2URL(server, path)
621622
} else if (values.protocol === 'SharedMountPoint') {
623+
server = 'localhost'
622624
url = this.SharedMountPointURL(server, path)
623625
} else if (values.protocol === 'CLVM') {
624626
var vg = (values.volumegroup.substring(0, 1) !== '/') ? ('/' + values.volumegroup) : values.volumegroup

0 commit comments

Comments
 (0)