ui: pass validated storagepolicy for swift store (#11315)

Fixes #9789

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2025-08-04 16:21:58 +05:30 committed by GitHub
parent 3134efb971
commit a0fd37f495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

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