From 307e362334a236ea6683ee1d0ebea57c94362d62 Mon Sep 17 00:00:00 2001 From: Arseniy Kuznetsov Date: Sat, 17 Sep 2022 10:41:45 +0100 Subject: [PATCH] expires_after cardinality, bug fixes --- mktxp/datasource/dhcp_ds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mktxp/datasource/dhcp_ds.py b/mktxp/datasource/dhcp_ds.py index 6744ddc..1ff86e4 100644 --- a/mktxp/datasource/dhcp_ds.py +++ b/mktxp/datasource/dhcp_ds.py @@ -32,7 +32,7 @@ class DHCPMetricsDataSource: if 'host_name' in metric_labels: translation_table['host_name'] = lambda c: c if c else '' if 'expires_after' in metric_labels: - translation_table['expires_after'] = lambda c: parse_mkt_uptime(c) + translation_table['expires_after'] = lambda c: parse_mkt_uptime(c) if c else 0 if 'active_address' in metric_labels: translation_table['active_address'] = lambda c: c if c else ''