Skip to content

Commit

Permalink
Fix bug where cloudtrail events were retrieved and added to queue twice
Browse files Browse the repository at this point in the history
  • Loading branch information
hakbailey committed Aug 22, 2023
1 parent 210c94e commit a39268b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/eda/plugins/event_source/aws_cloudtrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None:
event_time = None
event_ids = []
while True:
events = await _get_cloudtrail_events(client, params)
if event_time is not None:
params["StartTime"] = event_time
events = await _get_cloudtrail_events(client, params)

events, c_event_time, c_event_ids = _get_events(events, event_ids)
for event in events:
Expand Down

0 comments on commit a39268b

Please sign in to comment.