From 187a0aec7641af4be3eb4e9cb4a781883819efd4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 1 Jan 2022 17:02:28 +0100 Subject: ... --- overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py index 7304d53d..a8ac966e 100644 --- a/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py +++ b/overlays/nftables-prometheus-exporter/nftables-prometheus-exporter.py @@ -54,7 +54,7 @@ class NFTMetrics: for query_name in ['ruleset', 'counters', 'maps', 'meters', 'sets']: process = subprocess.run( ('nft', '--json', 'list', query_name), - capture_output = True, check = True, text = True + stdout = subprocess.PIPE, check = True, text = True ) data = json.loads(process.stdout) version = data['nftables'][0]['metainfo']['json_schema_version'] -- cgit v1.2.3