Skip to content

Commit a0fd37f

Browse files
authored
ui: pass validated storagepolicy for swift store (#11315)
Fixes #9789 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 3134efb commit a0fd37f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/views/infra/AddSecondaryStorage.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ export default {
295295
const swiftParams = {
296296
account: values.account,
297297
username: values.username,
298-
key: values.key,
299-
storagepolicy: values.storagepolicy
298+
key: values.key
299+
}
300+
if (values.storagepolicy) {
301+
swiftParams.storagepolicy = values.storagepolicy
300302
}
301303
Object.keys(swiftParams).forEach((key, index) => {
302304
data['details[' + index.toString() + '].key'] = key

0 commit comments

Comments
 (0)