bundles/wireguard: fix early fault resolve in metadata.py
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-12-10 16:39:26 +01:00
parent bd217f0666
commit 1d06d86205
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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 {