mhkadhum commented on code in PR #12124:
URL: https://github.com/apache/cloudstack/pull/12124#discussion_r2659481421


##########
ui/src/views/infra/AddObjectStorage.vue:
##########
@@ -165,26 +240,66 @@ export default {
         const formRaw = toRaw(this.form)
         const values = this.handleRemoveFields(formRaw)
 
-        var data = {
-          name: values.name,
-          size: values.size
+        const data = {
+          name: values.name
         }
-        var provider = values.provider
+        const provider = values.provider
 
         data.provider = provider
         data.url = values.url
-        data['details[0].key'] = 'accesskey'
-        data['details[0].value'] = values.accessKey
-        data['details[1].key'] = 'secretkey'
-        data['details[1].value'] = values.secretKey
 
         if (provider === 'Cloudian HyperStore') {
+          // Cloudian HyperStore details
+          data['details[0].key'] = 'accesskey'
+          data['details[0].value'] = values.accessKey
+          data['details[1].key'] = 'secretkey'
+          data['details[1].value'] = values.secretKey
           data['details[2].key'] = 'validateSSL'
           data['details[2].value'] = values.validateSSL
           data['details[3].key'] = 's3Url'
           data['details[3].value'] = values.s3Url
           data['details[4].key'] = 'iamUrl'
           data['details[4].value'] = values.iamUrl
+        } else if (provider === 'ECS') {

Review Comment:
   Added



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to