From e54135b014efd2e47d38b9db0e11843c764bbf67 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 19 May 2021 20:50:18 +0200 Subject: [PATCH] bundles/telegraf: it's "command" for execd, not "commands", because ... who knows --- bundles/telegraf/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/telegraf/items.py b/bundles/telegraf/items.py index 9c58567..4f7e12c 100644 --- a/bundles/telegraf/items.py +++ b/bundles/telegraf/items.py @@ -65,7 +65,7 @@ for config in sorted(node.metadata.get('telegraf/input_plugins/exec', {}).values telegraf_config['inputs']['exec'].append(config) -for config in sorted(node.metadata.get('telegraf/input_plugins/execd', {}).values(), key=lambda c: ''.join(c['commands'])): +for config in sorted(node.metadata.get('telegraf/input_plugins/execd', {}).values(), key=lambda c: ''.join(c['command'])): if 'execd' not in telegraf_config['inputs']: telegraf_config['inputs']['execd'] = []