From 4e369c67de2526af71c580c6777eb6a7486d7839 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 7 Dec 2020 18:43:21 +0530 Subject: [PATCH] Fix empty server details for SharedMountPoint protocol (#891) Co-authored-by: Pearl Dsilva Signed-off-by: Rohit Yadav --- ui/src/views/infra/AddPrimaryStorage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/views/infra/AddPrimaryStorage.vue b/ui/src/views/infra/AddPrimaryStorage.vue index 93e20666e94..dc74d68d42e 100644 --- a/ui/src/views/infra/AddPrimaryStorage.vue +++ b/ui/src/views/infra/AddPrimaryStorage.vue @@ -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