diff options
Diffstat (limited to 'metrics.py')
-rwxr-xr-x | metrics.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -190,7 +190,7 @@ class EjabberdMetrics(EjabberdApiCalls): return data - def _get_nodes(self): + def get_nodes(self): if not hasattr(self, "_nodes"): self._nodes = self.fetch_nodes() return self._nodes @@ -228,7 +228,7 @@ class EjabberdMetrics(EjabberdApiCalls): data["vhosts"] = vhosts nodes = {} - for node in self._get_nodes(): + for node in self.get_nodes(): nodes[node] = self.get_node_metrics(node) data["online_client_by_ipversion"] = self.get_online_client_by_ipversion() |