mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-17 21:24:25 +01:00
2to3 for jsonlog and splunk
This commit is contained in:
@@ -49,7 +49,7 @@ class Output(cowrie.core.output.Output):
|
||||
self.outfile.close()
|
||||
|
||||
def write(self, logentry):
|
||||
for i in logentry.keys():
|
||||
for i in list(logentry.keys()):
|
||||
# remove twisted 15 legacy keys
|
||||
if i.startswith('log_'):
|
||||
del logentry[i]
|
||||
|
||||
@@ -36,7 +36,7 @@ class Output(cowrie.core.output.Output):
|
||||
pass
|
||||
|
||||
def write(self, logentry):
|
||||
for i in logentry.keys():
|
||||
for i in list(logentry.keys()):
|
||||
# remove twisted 15 legacy keys
|
||||
if i.startswith('log_'):
|
||||
del logentry[i]
|
||||
|
||||
Reference in New Issue
Block a user