From 1d06d862057b94be4e0f42f89cff6675827ddbbb Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 10 Dec 2020 16:39:26 +0100 Subject: [PATCH] bundles/wireguard: fix early fault resolve in metadata.py --- bundles/wireguard/metadata.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bundles/wireguard/metadata.py b/bundles/wireguard/metadata.py index 10a7a19..e2219cb 100644 --- a/bundles/wireguard/metadata.py +++ b/bundles/wireguard/metadata.py @@ -82,9 +82,7 @@ def icinga2(metadata): for peer, config in metadata.get('wireguard/peers', {}).items(): services[f'WIREGUARD CONNECTION {peer}'] = { - 'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_wireguard_connected wg0 {}'.format( - config['pubkey'], - ), + 'command_on_monitored_host': config['pubkey'].format_into('sudo /usr/local/share/icinga/plugins/check_wireguard_connected wg0 {}'), } return {