aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-monitoring
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-webserver-monitoring')
-rw-r--r--server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
index ec3f0e79135..dedea9150c8 100644
--- a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
+++ b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
@@ -58,8 +58,7 @@ public class ElasticSearchMetricTask implements MonitoringTask {
serverMonitoringMetrics.setElasticSearchStatusToRed();
} else {
switch (esStatus) {
- case GREEN:
- case YELLOW:
+ case GREEN, YELLOW:
serverMonitoringMetrics.setElasticSearchStatusToGreen();
break;
case RED: