Plugin monit_parser: fix style issues
This commit is contained in:
parent
417bebc316
commit
7f3ce96632
|
@ -61,8 +61,8 @@ MONIT_XML_URL = ("http://{host}:{port}/_status?format=xml"
|
|||
|
||||
|
||||
def sanitize(s):
|
||||
OK_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789"
|
||||
return "".join([char for char in s if char in OK_CHARS])
|
||||
ok_chars = "abcdefghijklmnopqrstuvwxyz0123456789"
|
||||
return "".join([char for char in s if char in ok_chars])
|
||||
|
||||
|
||||
def get_monit_status_xml():
|
||||
|
|
Loading…
Reference in New Issue