1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Python plugins: fix style issues

This commit is contained in:
Lars Kruse 2020-08-25 16:58:50 +02:00
parent 3bc9396918
commit 40827a051a
2 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ def main():
sys.exit(0) sys.exit(0)
else: else:
client_presence_re = re.compile("[\]] (.*?)\(\d+\)") client_presence_re = re.compile(r"[\]] (.*?)\(\d+\)")
telnet = telnetlib.Telnet(host, port) telnet = telnetlib.Telnet(host, port)
telnet.write(b"c2s:show()\n") telnet.write(b"c2s:show()\n")
telnet_response = telnet.read_until(b"clients", 5) telnet_response = telnet.read_until(b"clients", 5)

View file

@ -243,10 +243,10 @@ if __name__ == "__main__":
# graph config # graph config
print(f"multigraph docsis_{g['name']}") print(f"multigraph docsis_{g['name']}")
print(f"graph_title {g['title']}") print(f"graph_title {g['title']}")
print(f"graph_category network") print("graph_category network")
print(f"graph_vlabel {g['vlabel']}") print(f"graph_vlabel {g['vlabel']}")
print(f"graph_info {g['info']}") print(f"graph_info {g['info']}")
print(f"graph_scale no") print("graph_scale no")
# channels # channels
for c in g['data']: for c in g['data']: