Fix execute REST API call

We weren't assigning the trigger event in the execute REST API

Original commit: elastic/x-pack-elasticsearch@cc8a6d043c
This commit is contained in:
Brian Murphy 2015-05-06 17:05:43 -04:00
parent 7d98358012
commit cf23d54aed
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class RestExecuteWatchAction extends WatcherRestHandler {
if (triggerEvent == null) {
throw new WatcherException("[{}] is a required field.",TRIGGER_EVENT_FIELD.getPreferredName());
}
executeWatchRequestBuilder.setTriggerEvent(triggerEvent);
return executeWatchRequestBuilder.request();
}