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,8 +1,9 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from flask import Flask, Response
|
||||
from subprocess import check_output
|
||||
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/status')
|
||||
|
@ -25,5 +26,5 @@ def statuspage():
|
|||
|
||||
if icinga_is_fine and postgres_is_fine:
|
||||
return 'OK', 200
|
||||
else:
|
||||
return 'Something is wrong!', 500
|
||||
|
||||
return 'Something is wrong!', 500
|
||||
|
|
|
@ -264,13 +264,13 @@ icinga_run_deps = {
|
|||
'pkg_apt:icinga2',
|
||||
'pkg_apt:icinga2-ido-pgsql',
|
||||
}
|
||||
for name in actions.keys():
|
||||
for name in actions:
|
||||
icinga_run_deps.add(f'action:{name}')
|
||||
for name in directories.keys():
|
||||
for name in directories:
|
||||
icinga_run_deps.add(f'directory:{name}')
|
||||
for name in files.keys():
|
||||
for name in files:
|
||||
icinga_run_deps.add(f'file:{name}')
|
||||
for name in symlinks.keys():
|
||||
for name in symlinks:
|
||||
icinga_run_deps.add(f'symlink:{name}')
|
||||
|
||||
svc_systemd = {
|
||||
|
|
|
@ -19,7 +19,6 @@ defaults = {
|
|||
|
||||
# needed for check_rbl
|
||||
'libdata-validate-ip-perl': {},
|
||||
'libdata-validate-ip-perl': {},
|
||||
'libmonitoring-plugin-perl': {},
|
||||
'libnet-dns-perl': {},
|
||||
'libreadonly-perl': {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue