Skip to content

Commit

Permalink
[1.7] Conditional handling in es_template.template_settings (#1191) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeahan authored Dec 14, 2020
1 parent 2000924 commit 008333c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generators/es_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def template_settings(es_version, ecs_version, mappings_section, template_settin
template['mappings'] = mappings_section

# _meta can't be at template root in legacy templates, so moving back to mappings section
mappings_section['_meta'] = template.pop('_meta')
# if present
if '_meta' in template:
mappings_section['_meta'] = template.pop('_meta')

return template

Expand Down

0 comments on commit 008333c

Please sign in to comment.