mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
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:
parent
e914148f43
commit
24dc2a82b5
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user