aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-06-25 00:45:21 +0200
committernico <nico@magicbroccoli.de>2020-06-25 00:45:21 +0200
commit86562276d40988033d4cbadda413a8639c97724c (patch)
tree1e25f4c4fbf1fb42f4133f3bac57a21ac3e09794
parentbf05b826a110609d6317184cbdbc519b55b51c85 (diff)
fix get_nodes not being a public method
* fix get_nodes being a public method
-rwxr-xr-xmetrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/metrics.py b/metrics.py
index 8b25db5..cd4c931 100755
--- a/metrics.py
+++ b/metrics.py
@@ -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()