storage: VMware storage capabilities fixes (#580)

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-08-14 16:27:49 +05:30 committed by Rohit Yadav
parent 8155fa7b66
commit 2493a08922

View File

@ -488,16 +488,16 @@ export default {
Object.keys(smbParams).forEach((key, index) => {
params['details[' + index.toString() + '].' + key] = smbParams[key]
})
} else if (values.protocol === 'PreSetup' && values.hypervisor !== 'VMware') {
} else if (values.protocol === 'PreSetup' && this.hypervisorType !== 'VMware') {
url = this.presetupURL(server, path)
} else if (values.protocol === 'PreSetup' && values.hypervisor === 'VMware') {
} else if (values.protocol === 'PreSetup' && this.hypervisorType === 'VMware') {
path = values.vCenterDataCenter
if (path.substring(0, 1) !== '/') {
path = '/' + path
}
path += '/' + values.vCenterDataStore
url = this.presetupURL(server, path)
} else if (values.protocol === 'datastorecluster' && values.hypervisor === 'VMware') {
} else if (values.protocol === 'datastorecluster' && this.hypervisorType === 'VMware') {
path = values.vCenterDataCenter
if (path.substring(0, 1) !== '/') {
path = '/' + path