Просмотр исходного кода

Fix CEPH options not working properly

The CEPH options fields weren't rendered correctly when creating a new
Openstack endpoint.

The CEPH options weren't displayed when editing an Openstack endpoint
with CEPH options.
Sergiu Miclea 5 лет назад
Родитель
Сommit
1e142bf92e
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/plugins/endpoint/openstack/ConnectionSchemaPlugin.ts

+ 2 - 0
src/plugins/endpoint/openstack/ConnectionSchemaPlugin.ts

@@ -56,6 +56,8 @@ export default class ConnectionSchemaParser {
       identityField.default = identityField.minimum
     }
 
+    fields.find(f => f.name === 'ceph_options')?.properties?.forEach(f => { f.name = `ceph_options/${f.name}` })
+
     const createInputChoice = (name: string, field1Name: string, field2Name: string) => {
       const field1 = fields.find(f => f.name === field1Name)
       const field2 = fields.find(f => f.name === field2Name)