Insight. missing decode() when parsing ifconfig output leading to unexpected results. sqlite seems to store the binary in a varchar element, which looks right, but you can't compare it in your where statements. This doesn't seem to lead to issues when there is already valid content in the timeserie table.

This commit is contained in:
Ad Schellevis 2019-07-12 08:37:46 +02:00
parent e914148f43
commit 24dc2a82b5

View File

@ -45,7 +45,7 @@ class Interfaces(object):
output_stream.seek(0)
if_index = 1
for line in output_stream.readline().split():
self._if_index["%s" % if_index] = line
self._if_index["%s" % if_index] = line.decode()
if_index += 1
def if_device(self, if_index):