Another PEP8 compatibility fix

This commit is contained in:
Alexandr Mikhailov 2015-12-18 00:46:10 +03:00
parent bfe367b836
commit 38f7c6cd80
2 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,8 @@ MOCK_MODULES = [
"bs4", "bs4",
"dota2py", "dota2py",
"novaclient.v2", "novaclient.v2",
"speedtest_cli" "speedtest_cli",
"pyzabbix"
] ]
for mod_name in MOCK_MODULES: for mod_name in MOCK_MODULES:

View File

@ -6,14 +6,16 @@ class Zabbix(IntervalModule):
""" """
Zabbix alerts watcher Zabbix alerts watcher
Requires: pyzabbix
.. rubric:: Available formatters .. rubric:: Available formatters
* {default} - Full output count alerts like total:a5/a4/a3/a2/a1/a0 * {default} - Full output count alerts like total:a5/a4/a3/a2/a1/a0
* {total} - Total count of alerts * {total} - Total count of alerts
* {aX_count} - Count alerts of X severity * {aX_count} - Count alerts of X severity
* {colorX} - Predicted color for X severity. It can be used with Pango markup hint for different colours at each severity with * {colorX} - Predicted color for X severity. It can be used with Pango markup hint for different colours at each severity with
Requires pyzabbix
""" """
settings = ( settings = (
("zabbix_server", "Zabbix Server URL"), ("zabbix_server", "Zabbix Server URL"),
("zabbix_user", "Zabbix API User"), ("zabbix_user", "Zabbix API User"),
@ -21,6 +23,7 @@ class Zabbix(IntervalModule):
("interval", "Update interval"), ("interval", "Update interval"),
"format" "format"
) )
required = ("zabbix_server", "zabbix_user", "zabbix_password") required = ("zabbix_server", "zabbix_user", "zabbix_password")
interval = 60 interval = 60
format = "{default}" format = "{default}"