Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3006.x] Fix deleting from utils/aws.py::__AssumeCache__ while iterating over it #64392

Conversation

MKLeb
Copy link
Contributor

@MKLeb MKLeb commented May 31, 2023

What does this PR do?

Fixes use of invalid delete method for a dictionary and avoids deleting on the dictionary we iterate over.

What issues does this PR fix or reference?

Fixes: #61049

Previous Behavior

Invalid .delete() method for a dictionary, and attempting to delete from the dictionary we are iterating over.

New Behavior

Use of del to delete from a dictionary, and don't delete from the dictionary we are iterating over, but a copy of it.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@MKLeb MKLeb requested a review from a team as a code owner May 31, 2023 17:12
@MKLeb MKLeb requested review from cmcmarrow and removed request for a team May 31, 2023 17:12
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Fix deleting from utils/aws.py::__AssumeCache__ while iterating over it [master] Fix deleting from utils/aws.py::__AssumeCache__ while iterating over it May 31, 2023
@MKLeb MKLeb changed the base branch from master to 3006.x May 31, 2023 17:13
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title [master] Fix deleting from utils/aws.py::__AssumeCache__ while iterating over it [3006.x] Fix deleting from utils/aws.py::__AssumeCache__ while iterating over it May 31, 2023
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 17:56 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 17:56 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 18:00 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 18:01 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 18:14 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 18:14 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:22 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@MKLeb MKLeb temporarily deployed to ci May 31, 2023 19:42 — with GitHub Actions Inactive
@Ch3LL Ch3LL merged commit fae0ebc into saltstack:3006.x May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] utils/aws.py:assumed_creds() attempts to update a dictionary while iterating on it
2 participants