Skip to content

Commit

Permalink
Fix bug where cloudtrail events were retrieved and added to queue twi…
Browse files Browse the repository at this point in the history
…ce (#169)

Co-authored-by: Bill Wei <[email protected]>
  • Loading branch information
2 people authored and ttuffin committed Dec 4, 2023
1 parent d7ba9e8 commit f4bf12c
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 f4bf12c

Please sign in to comment.