Always use mustache language
Using a null language just defaults to painless which is wrong for watcher. Original commit: elastic/x-pack-elasticsearch@48bdc31695
This commit is contained in:
parent
05222b0d3f
commit
edb8c12f75
|
@ -206,7 +206,7 @@ public class WatcherUtilsTests extends ESTestCase {
|
|||
}
|
||||
String text = randomAsciiOfLengthBetween(1, 5);
|
||||
ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values());
|
||||
template = new Script(text, scriptType, randomBoolean() ? null : "mustache", params);
|
||||
template = new Script(text, scriptType, "mustache", params);
|
||||
builder.field("template", template);
|
||||
}
|
||||
builder.endObject();
|
||||
|
|
Loading…
Reference in New Issue