closes #262: fix mikrotik error

This commit is contained in:
thatmattlove 2024-06-16 16:54:14 -04:00
parent e19dd675e5
commit 30fda91bc8

View file

@ -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