Skip to content

Commit

Permalink
RedundancyGroupState: change state texts to 'unreachable' or 'reachable'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raviks789 committed Oct 8, 2024
1 parent 4033b39 commit faeb8b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Icingadb/Model/RedundancyGroupState.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function createRelations(Relations $relations): void

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';
}
}

0 comments on commit faeb8b4

Please sign in to comment.