bundles: code style improvements
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-12 20:37:36 +01:00
parent 2af911c29f
commit f52df58517
Signed by: kunsi
GPG key ID: 12E3D2136B818350
24 changed files with 80 additions and 95 deletions

View file

@ -1,5 +1,5 @@
from json import dumps
from os.path import join
#from os.path import join
from bundlewrap.metadata import MetadataJSONEncoder

View file

@ -1,4 +1,4 @@
import re
#import re
defaults = {
'apt': {
@ -147,7 +147,7 @@ def monitoring(metadata):
services = {}
for poolname, pool_options in metadata.get('zfs/pools').items():
for poolname, _ in metadata.get('zfs/pools').items():
services['ZFS ZPOOL ONLINE {}'.format(poolname)] = {
'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_zpool_online {}'.format(poolname),
'vars.notification.mail': True,