[Watcher] Fix typoed deprecated endpoint

{actions/_ack was accidentally duplicated. It should be _ack/{actions} in the first case.

Original commit: elastic/x-pack-elasticsearch@38895522b5
This commit is contained in:
Chris Earle 2016-07-13 14:56:37 -04:00
parent b674e016cb
commit 2c3a0db9ec
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ public class RestAckWatchAction extends WatcherRestHandler {
controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/watch/{id}/_ack", this, controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/watch/{id}/_ack", this,
PUT, "/_watcher/watch/{id}/_ack", deprecationLogger); PUT, "/_watcher/watch/{id}/_ack", deprecationLogger);
controller.registerWithDeprecatedHandler(POST, URI_BASE + "/watch/{id}/_ack/{actions}", this, controller.registerWithDeprecatedHandler(POST, URI_BASE + "/watch/{id}/_ack/{actions}", this,
POST, "/_watcher/watch/{id}/{actions}/_ack", deprecationLogger); POST, "/_watcher/watch/{id}/_ack/{actions}", deprecationLogger);
controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/watch/{id}/_ack/{actions}", this, controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/watch/{id}/_ack/{actions}", this,
PUT, "/_watcher/watch/{id}/{actions}/_ack", deprecationLogger); PUT, "/_watcher/watch/{id}/_ack/{actions}", deprecationLogger);
// @deprecated The following can be totally dropped in 6.0 // @deprecated The following can be totally dropped in 6.0
// Note: we deprecated "/{actions}/_ack" totally; so we don't replace it with a matching _xpack variant // Note: we deprecated "/{actions}/_ack" totally; so we don't replace it with a matching _xpack variant