Skip to content

Fix log duplication when collecting all regions#15

Open
Matthijsy wants to merge 1 commit into
invictus-ir:mainfrom
Matthijsy:hotfix/log-duplication
Open

Fix log duplication when collecting all regions#15
Matthijsy wants to merge 1 commit into
invictus-ir:mainfrom
Matthijsy:hotfix/log-duplication

Conversation

@Matthijsy

Copy link
Copy Markdown

Currently when specifying -A the logs of earlier regions are duplicated to the later collected regions. In my case only the first region contained S3 logs, but all the output dirs contained the same content.

This was due to the reference self.results = LOGS_RESULTS, which results in every change on self.result also changing the LOGS_RESULTS. By doing a deepcopy of the dict the configuration dict stays the same for next iterations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant