Plugin monit_parser: fix style issues

This commit is contained in:
Lars Kruse 2018-03-27 04:55:14 +02:00
parent 417bebc316
commit 7f3ce96632
1 changed files with 2 additions and 2 deletions

View File

@ -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():