You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/08/10 11:21:39 UTC

[GitHub] [cloudstack-primate] Pearl1594 commented on a change in pull request #548: Add storage policies field for DiskOffering and Primary storage creation Forms

Pearl1594 commented on a change in pull request #548:
URL: https://github.com/apache/cloudstack-primate/pull/548#discussion_r467838257



##########
File path: src/views/infra/AddPrimaryStorage.vue
##########
@@ -475,8 +485,22 @@ export default {
           Object.keys(smbParams).forEach((key, index) => {
             params['details[' + index.toString() + '].' + key] = smbParams[key]
           })
-        } else if (values.protocol === 'PreSetup') {
+        } else if (values.protocol === 'PreSetup' && values.hypervisor !== 'VMware') {
           url = this.presetupURL(server, path)
+        } else if (values.protocol === 'PreSetup' && values.hypervisor === 'VMware') {
+          path = values.vCenterDataCenter
+          if (path.substring(0, 1) !== '/') {
+            path = '/' + path
+          }
+          path += '/' + values.vCenterDataStore
+          url = this.presetupURL('dummy', path)
+        } else if (values.protocol === 'datastorecluster' && values.hypervisor === 'VMware') {
+          path = values.vCenterDataCenter
+          if (path.substring(0, 1) !== '/') {
+            path = '/' + path
+          }
+          path += '/' + values.vCenterDataStore
+          url = this.datastoreclusterURL('dummy', path)

Review comment:
       @harikrishna-patnala I think you looking at an older commit, it's already been addressed in: https://github.com/apache/cloudstack-primate/pull/548/commits/0e86b9a9595281fad39c81c2cdea055c33229e98




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org