mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-12-08 20:38:48 +00:00
bug fixes
This commit is contained in:
@@ -19,7 +19,9 @@ class IPConnectionDatasource:
|
||||
''' IP connections data provider
|
||||
'''
|
||||
@staticmethod
|
||||
def metric_records(router_entry, *, metric_labels = []):
|
||||
def metric_records(router_entry, *, metric_labels = None):
|
||||
if metric_labels is None:
|
||||
metric_labels = []
|
||||
try:
|
||||
answer = router_entry.api_connection.router_api().get_binary_resource('/ip/firewall/connection/').call('print', {'count-only': b''})
|
||||
# answer looks and feels like an empty list: [], but it has a special attribute `done_message`
|
||||
|
||||
Reference in New Issue
Block a user