Permalink
Browse files

Merge branch '3.0'

  • Loading branch information...
chemamartinez committed Nov 29, 2017
2 parents ed98208 + b18b26e commit 390aaef14f205ba2821a43fedfda1ff4c36d42d2
Showing with 7 additions and 2 deletions.
  1. +7 −2 tools/amazon/getawslog.py
@@ -112,8 +112,13 @@ def main(argv):
j = json.load(data)
if "Records" not in j:
continue
for item in j["Records"]:
aws_log = {'aws': item}
for json_event in j["Records"]:
new_dict = {}
for key in json_event:
if json_event[key]:
new_dict[key] = json_event[key]
new_dict['source_log'] = newFile
aws_log = {'aws': new_dict}
log.write("{0}\n".format(json.dumps(aws_log)))
log.close()

0 comments on commit 390aaef

Please sign in to comment.