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

sureshanaparti pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new a0fd37f4955 ui: pass validated storagepolicy for swift store (#11315)
a0fd37f4955 is described below

commit a0fd37f4955795742110a1015dfc3b0cf01694d1
Author: Abhishek Kumar <abhishek.mr...@gmail.com>
AuthorDate: Mon Aug 4 16:21:58 2025 +0530

    ui: pass validated storagepolicy for swift store (#11315)
    
    Fixes #9789
    
    Signed-off-by: Abhishek Kumar <abhishek.mr...@gmail.com>
---
 ui/src/views/infra/AddSecondaryStorage.vue | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ui/src/views/infra/AddSecondaryStorage.vue 
b/ui/src/views/infra/AddSecondaryStorage.vue
index 4adc4e9a1d6..746af5b959d 100644
--- a/ui/src/views/infra/AddSecondaryStorage.vue
+++ b/ui/src/views/infra/AddSecondaryStorage.vue
@@ -295,8 +295,10 @@ export default {
           const swiftParams = {
             account: values.account,
             username: values.username,
-            key: values.key,
-            storagepolicy: values.storagepolicy
+            key: values.key
+          }
+          if (values.storagepolicy) {
+            swiftParams.storagepolicy = values.storagepolicy
           }
           Object.keys(swiftParams).forEach((key, index) => {
             data['details[' + index.toString() + '].key'] = key

Reply via email to