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

Plugin arris-tg3442: fix code style issues reported by flake8

This commit is contained in:
Lars Kruse 2019-08-14 01:27:42 +02:00
parent 69602b1bbf
commit c586f34d4b

View file

@ -242,24 +242,21 @@ if __name__ == "__main__":
# process all graphs
for g in graph_descriptions:
# graph config
print(
f"multigraph docsis_{g['name']}\n"
f"graph_title {g['title']}\n" \
f"graph_category network\n" \
f"graph_vlabel {g['vlabel']}\n" \
f"graph_info {g['info']}\n" \
f"graph_scale no\n"
)
print(f"multigraph docsis_{g['name']}")
print(f"graph_title {g['title']}")
print(f"graph_category network")
print(f"graph_vlabel {g['vlabel']}")
print(f"graph_info {g['info']}")
print(f"graph_scale no")
# channels
for c in g['data']:
# only use channels with PowerLevel
if not c['PowerLevel']:
continue
print(
f"channel_{c['ChannelID']}.label {c['ChannelID']} ({c['Frequency']} MHz)\n"
f"channel_{c['ChannelID']}.info Channel type: {c['ChannelType']}, Modulation: {c['Modulation']}"
)
info_text = f"Channel type: {c['ChannelType']}, Modulation: {c['Modulation']}"
print(f"channel_{c['ChannelID']}.label {c['ChannelID']} ({c['Frequency']} MHz)")
print(f"channel_{c['ChannelID']}.info {info_text}")
# output values ?
else: