This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new b937056  Fix empty server details for SharedMountPoint protocol (#891)
b937056 is described below

commit b9370564f4632a47d52320d97140c2242c1808c1
Author: Pearl Dsilva <[email protected]>
AuthorDate: Mon Dec 7 18:43:21 2020 +0530

    Fix empty server details for SharedMountPoint protocol (#891)
    
    Co-authored-by: Pearl Dsilva <[email protected]>
---
 src/views/infra/AddPrimaryStorage.vue | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/views/infra/AddPrimaryStorage.vue 
b/src/views/infra/AddPrimaryStorage.vue
index 93e2066..dc74d68 100644
--- a/src/views/infra/AddPrimaryStorage.vue
+++ b/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

Reply via email to