Use a helper method to get monitor counter

This commit is contained in:
Sajith Sasidharan 2020-07-14 20:47:23 -04:00
parent 6eba2fb2e6
commit b4b820ed7b

View File

@ -483,8 +483,7 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
@renderer
def problems_p(self, req, tag):
c = self.monitor.get_status().get_counters()
if c["count-objects-unhealthy"]:
if self._get_monitor_counter("count-objects-unhealthy"):
return tag
return ""