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
hakbailey and bzwei authored Aug 30, 2023
1 parent a87960b commit 42ff67e
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 42ff67e

Please sign in to comment.