We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3134efb commit a0fd37fCopy full SHA for a0fd37f
1 file changed
ui/src/views/infra/AddSecondaryStorage.vue
@@ -295,8 +295,10 @@ export default {
295
const swiftParams = {
296
account: values.account,
297
username: values.username,
298
- key: values.key,
299
- storagepolicy: values.storagepolicy
+ key: values.key
+ }
300
+ if (values.storagepolicy) {
301
+ swiftParams.storagepolicy = values.storagepolicy
302
}
303
Object.keys(swiftParams).forEach((key, index) => {
304
data['details[' + index.toString() + '].key'] = key
0 commit comments