bundles/wireguard: fix early fault resolve in metadata.py
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
bd217f0666
commit
1d06d86205
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue