fix comparison test

This commit is contained in:
Lukáš Vlček 2012-03-14 14:16:56 +01:00 committed by Shay Banon
parent 3190e43a9a
commit 051e6a02a7
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
clusterHealthRequest.waitForNodes(request.param("wait_for_nodes", clusterHealthRequest.waitForNodes()));
String sLevel = request.param("level");
if (sLevel != null) {
if ("cluster".equals("sLevel")) {
if ("cluster".equals(sLevel)) {
level = 0;
} else if ("indices".equals(sLevel)) {
level = 1;