浏览代码

openstack: fill default field value for replica_export_mechanism

Cristian Matiut 1 年之前
父节点
当前提交
31294e3e30
共有 1 个文件被更改,包括 14 次插入15 次删除
  1. 14 15
      src/plugins/openstack/OptionsSchemaPlugin.ts

+ 14 - 15
src/plugins/openstack/OptionsSchemaPlugin.ts

@@ -83,21 +83,20 @@ export default class OptionsSchemaParser extends OptionsSchemaPluginBase {
           });
         }
       });
-    } else {
-      const option = options.find(f => f.name === field.name);
-      if (!option) {
-        return;
-      }
-      if (
-        !defaultFillMigrationImageMapValues({
-          field,
-          option,
-          migrationImageMapFieldName: this.migrationImageMapFieldName,
-          requiresWindowsImage,
-        })
-      ) {
-        defaultFillFieldValues(field, option);
-      }
+    }
+    const option = options.find(f => f.name === field.name);
+    if (!option) {
+      return;
+    }
+    if (
+      !defaultFillMigrationImageMapValues({
+        field,
+        option,
+        migrationImageMapFieldName: this.migrationImageMapFieldName,
+        requiresWindowsImage,
+      })
+    ) {
+      defaultFillFieldValues(field, option);
     }
   }
 }