mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 21:38:15 +00:00
Remove use of Setting#getRaw in deprecation tests (#47262)
This commit removes a use of Setting#getRaw from the deprecation header tests. The use of Setting#getRaw is not needed here, the x-content infrastructure will take care of emitting the appropriate values here, and so the caller does not need to convert these to string representations of the settings values.
This commit is contained in:
parent
2cba323b4e
commit
7eed3e5585
@ -109,7 +109,7 @@ public class TestDeprecationHeaderRestAction extends BaseRestHandler {
|
||||
|
||||
builder.startObject().startArray("settings");
|
||||
for (String setting : settings) {
|
||||
builder.startObject().field(setting, SETTINGS_MAP.get(setting).getRaw(this.settings)).endObject();
|
||||
builder.startObject().field(setting, SETTINGS_MAP.get(setting).get(this.settings)).endObject();
|
||||
}
|
||||
builder.endArray().endObject();
|
||||
channel.sendResponse(new BytesRestResponse(RestStatus.OK, builder));
|
||||
|
Loading…
x
Reference in New Issue
Block a user