mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
closes #262: fix mikrotik error
This commit is contained in:
parent
e19dd675e5
commit
30fda91bc8
1 changed files with 35 additions and 34 deletions
|
|
@ -37,6 +37,7 @@ class MikrotikGarbageOutput(OutputPlugin):
|
|||
result = ()
|
||||
|
||||
for each_output in output:
|
||||
if len(each_output) != 0:
|
||||
if each_output.split()[-1] in ("DISTANCE", "STATUS"):
|
||||
# Mikrotik shows the columns with no rows if there is no data.
|
||||
# Rather than send back an empty table, send back an empty
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue