Fix bug.
This commit is contained in:
parent
cf803404c6
commit
76b7895e11
@ -126,7 +126,11 @@ def sensors_polling(poller_conf):
|
|||||||
stop.wait(timeout=time_to_sleep)
|
stop.wait(timeout=time_to_sleep)
|
||||||
|
|
||||||
def metric_list():
|
def metric_list():
|
||||||
return([metric['name'] for metric in poller_conf['metrics']])
|
metrics = []
|
||||||
|
for poller_conf in polling_conf:
|
||||||
|
for metric in poller_conf['metrics']:
|
||||||
|
metrics.append(metric['name'])
|
||||||
|
return metrics
|
||||||
|
|
||||||
class MyHandler(BaseHTTPRequestHandler):
|
class MyHandler(BaseHTTPRequestHandler):
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user