From cf23d54aed45d681be0c10db1f6cb57ea19e3bd0 Mon Sep 17 00:00:00 2001 From: Brian Murphy Date: Wed, 6 May 2015 17:05:43 -0400 Subject: [PATCH] Fix execute REST API call We weren't assigning the trigger event in the execute REST API Original commit: elastic/x-pack-elasticsearch@cc8a6d043cdaa4f06b767f959fe04a7dff88c8f9 --- .../watcher/rest/action/RestExecuteWatchAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/watcher/rest/action/RestExecuteWatchAction.java b/src/main/java/org/elasticsearch/watcher/rest/action/RestExecuteWatchAction.java index 89e6a0fcb78..fef5868456a 100644 --- a/src/main/java/org/elasticsearch/watcher/rest/action/RestExecuteWatchAction.java +++ b/src/main/java/org/elasticsearch/watcher/rest/action/RestExecuteWatchAction.java @@ -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(); }