Use validated fields for index setting (#128094) (#128219)

(cherry picked from commit 2a93e80574)

Co-authored-by: Jen Huang <jen.huang@elastic.co>
This commit is contained in:
Kibana Machine 2022-03-21 21:26:52 -04:00 committed by GitHub
parent 47da47faae
commit 02447f62e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -427,7 +427,7 @@ export async function installTemplate({
const defaultSettings = buildDefaultSettings({
templateName,
packageName,
fields,
fields: validFields,
type: dataStream.type,
ilmPolicy: dataStream.ilm_policy,
});