mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
kid control fixes
This commit is contained in:
@@ -24,7 +24,11 @@ class KidDeviceMetricsDataSource:
|
||||
if metric_labels is None:
|
||||
metric_labels = []
|
||||
try:
|
||||
device_records = router_entry.api_connection.router_api().get_resource('/ip/kid-control/device').get()
|
||||
device_records = []
|
||||
records = router_entry.api_connection.router_api().get_resource('/ip/kid-control/device').get()
|
||||
for record in records:
|
||||
if record.get('user'):
|
||||
device_records.append(record)
|
||||
return BaseDSProcessor.trimmed_records(router_entry, router_records=device_records, metric_labels=metric_labels)
|
||||
except Exception as exc:
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user