Skip to content

Commit

Permalink
openstack: fill default field value for replica_export_mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristi1324 committed Oct 8, 2024
1 parent 34510f1 commit 614e367
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/plugins/openstack/OptionsSchemaPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 614e367

Please sign in to comment.