From 6e7bdf7cda1d26992106824f9a9336563363d054 Mon Sep 17 00:00:00 2001 From: Matthijs Vos Date: Mon, 29 Jun 2026 20:34:45 +0200 Subject: [PATCH] Fix log duplication when collectiong all regions --- source/main/logs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main/logs.py b/source/main/logs.py index 686c1e0..45aa65d 100644 --- a/source/main/logs.py +++ b/source/main/logs.py @@ -7,6 +7,7 @@ from time import sleep from os import remove, rmdir from requests import get +from copy import deepcopy import source.utils.utils from source.utils.utils import write_file, create_folder, copy_or_write_s3, create_command, writefile_s3, LOGS_RESULTS, create_s3_if_not_exists, LOGS_BUCKET, ROOT_FOLDER, set_clients, write_or_dl, write_s3, athena_query @@ -33,7 +34,7 @@ def __init__(self, region, dl): """ self.region = region - self.results = LOGS_RESULTS + self.results = deepcopy(LOGS_RESULTS) self.dl = dl #Also created for cloudtrail-logs results