forked from mirrors/thatmattlove-hyperglass
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 = ()
|
result = ()
|
||||||
|
|
||||||
for each_output in output:
|
for each_output in output:
|
||||||
|
if len(each_output) != 0:
|
||||||
if each_output.split()[-1] in ("DISTANCE", "STATUS"):
|
if each_output.split()[-1] in ("DISTANCE", "STATUS"):
|
||||||
# Mikrotik shows the columns with no rows if there is no data.
|
# Mikrotik shows the columns with no rows if there is no data.
|
||||||
# Rather than send back an empty table, send back an empty
|
# Rather than send back an empty table, send back an empty
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue