Skip to content

Commit 3fc1c94

Browse files
authored
Make the 'get templates' types deprecation message consistent. (elastic#38533)
1 parent 33b2be5 commit 3fc1c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestGetIndexTemplateAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public class RestGetIndexTemplateAction extends BaseRestHandler {
5151
Collections.singleton(INCLUDE_TYPE_NAME_PARAMETER), Settings.FORMAT_PARAMS));
5252
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(
5353
LogManager.getLogger(RestGetIndexTemplateAction.class));
54-
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal]" +
55-
" Specifying include_type_name in get index template requests is deprecated.";
54+
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Using include_type_name in get " +
55+
"index template requests is deprecated. The parameter will be removed in the next major version.";
5656

5757
public RestGetIndexTemplateAction(final Settings settings, final RestController controller) {
5858
super(settings);

0 commit comments

Comments
 (0)