Kaynağa Gözat

openstack: fill default field value for replica_export_mechanism

Cristian Matiut 1 yıl önce
ebeveyn
işleme
31294e3e30
1 değiştirilmiş dosya ile 14 ekleme ve 15 silme
  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);
     }
   }
 }