Fix empty server details for SharedMountPoint protocol (#891)

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Pearl Dsilva 2020-12-07 18:43:21 +05:30 committed by Rohit Yadav
parent 100251cfa9
commit 4e369c67de

View File

@ -601,6 +601,7 @@ export default {
params['details[' + index.toString() + '].' + key] = smbParams[key]
})
} else if (values.protocol === 'PreSetup' && this.hypervisorType !== 'VMware') {
server = 'localhost'
url = this.presetupURL(server, path)
} else if (values.protocol === 'PreSetup' && this.hypervisorType === 'VMware') {
path = values.vCenterDataCenter
@ -619,6 +620,7 @@ export default {
} else if (values.protocol === 'ocfs2') {
url = this.ocfs2URL(server, path)
} else if (values.protocol === 'SharedMountPoint') {
server = 'localhost'
url = this.SharedMountPointURL(server, path)
} else if (values.protocol === 'CLVM') {
var vg = (values.volumegroup.substring(0, 1) !== '/') ? ('/' + values.volumegroup) : values.volumegroup