OpenSearch/x-pack/plugin/watcher/src
Alexander Reelsen 7571ca437a Disable Watcher script optimization for stored scripts (#53497)
The watcher TextTemplateEngine uses a fast path mechanism where it
checks for the existence of `{{` to decide if a mustache script
required compilation. This does not work for stored script, as the field
that is checked contains the id of the script, which means, the name of
the script is returned as its value.

This commit checks for the script type and does not involve this fast
path check if a stored script is used.

Closes #40212
2020-03-16 18:07:54 +01:00
..
main Disable Watcher script optimization for stored scripts (#53497) 2020-03-16 18:07:54 +01:00
test Disable Watcher script optimization for stored scripts (#53497) 2020-03-16 18:07:54 +01:00