From 7aecb990230340ca2f5a6cfe20c49f3e51f07fa9 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Wed, 2 Oct 2024 14:45:38 +0200 Subject: [PATCH] RedundancyGroupState: change state texts to 'unreachable' or 'reachable' The state text is only necessary to add css rules for state-balls and not be used to show the state text of the group. --- library/Icingadb/Model/RedundancyGroupState.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icingadb/Model/RedundancyGroupState.php b/library/Icingadb/Model/RedundancyGroupState.php index d6507d8e..df30f581 100644 --- a/library/Icingadb/Model/RedundancyGroupState.php +++ b/library/Icingadb/Model/RedundancyGroupState.php @@ -65,6 +65,7 @@ class RedundancyGroupState extends Model public function getStateText(): string { - return $this->failed ? 'problem' : 'ok'; + // The method should only be called to fake state balls and not to show the group's state + return $this->failed ? 'unreachable' : 'reachable'; } }