added sane check for line lenght
This commit is contained in:
parent
b3a43a96b1
commit
c26de603bb
@ -26,6 +26,8 @@ def parse_informix_transactions(info):
|
|||||||
entry = {}
|
entry = {}
|
||||||
parsed.setdefault(instance, [])
|
parsed.setdefault(instance, [])
|
||||||
parsed[instance].append(entry)
|
parsed[instance].append(entry)
|
||||||
|
###in some cases, for some transaction lines there is no info, only a timestamp that should be ignored
|
||||||
|
if len(line) > 2:
|
||||||
if "C" in line[2]:
|
if "C" in line[2]:
|
||||||
entry.setdefault("current_log_id", line[3])
|
entry.setdefault("current_log_id", line[3])
|
||||||
elif entry is not None:
|
elif entry is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user