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

Bug in tags.py filter_resources methods #7741

Open
kevinl-grab opened this issue Sep 8, 2022 · 1 comment
Open

Bug in tags.py filter_resources methods #7741

kevinl-grab opened this issue Sep 8, 2022 · 1 comment
Labels

Comments

@kevinl-grab
Copy link
Contributor

Describe the bug

The code iterates over a list, altering the list in-place, and also maintaining an index. The index gets out of sync every time an item is popped from the list.

#7740 shows the code in question, and a proposed fix (I'm chasing the status of submitting to CNCF projects internally, but if I can't, take this PR as an indication of where and what the bug is and there's any number of other ways it could be resolved).

What did you expect to happen?

Suggest not operating in-place on the resources list, and I expect the returned list to be accurate.

Cloud Provider

Amazon Web Services (AWS)

Cloud Custodian version and dependency information

No response

Policy

No response

Relevant log/traceback output

No response

Extra information or context

No response

@MadhuMPandurangi
Copy link

Hi @kevinl-grab, I'm interested in contributing to this issue. Can u please assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants