We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bb2c05 commit bf09c6bCopy full SHA for bf09c6b
test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java
@@ -534,12 +534,8 @@ private static void deleteAllPolicies() throws IOException {
534
Response response = adminClient().performRequest(new Request("GET", "/_ilm/policy"));
535
policies = entityAsMap(response);
536
} catch (ResponseException e) {
537
- int statusCode = e.getResponse().getStatusLine().getStatusCode();
538
- if (RestStatus.METHOD_NOT_ALLOWED.getStatus() == statusCode || RestStatus.BAD_REQUEST.getStatus() == statusCode) {
539
- // If bad request returned, ILM is not enabled.
540
- return;
541
- }
542
- throw e;
+ // If bad request returned, ILM is not enabled.
+ return;
543
}
544
545
if (policies == null || policies.isEmpty()) {
0 commit comments