bundles: code style improvements
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
2af911c29f
commit
f52df58517
24 changed files with 80 additions and 95 deletions
|
@ -1,5 +1,5 @@
|
|||
from json import dumps
|
||||
from os.path import join
|
||||
#from os.path import join
|
||||
|
||||
from bundlewrap.metadata import MetadataJSONEncoder
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue