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

Fixing a bug in the filter_resources code #7740

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

kevinl-grab
Copy link
Contributor

The original code tracked the index of the list and then removed items from the list - the index ends up out of sync and the returned list is not correct. This code switches to building a new data structure instead of operating in-place, and removes the use of a separate index.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 8, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@kapilt
Copy link
Collaborator

kapilt commented Sep 8, 2022

Thanks for the pull request! If you don't mind could you sign the Linux Foundation/CNCF CLA referenced in the other comment. Direct link https://api.easycla.lfx.linuxfoundation.org/v2/repository-provider/github/sign/14202841/52837350/7740/#/?version=2

@kapilt
Copy link
Collaborator

kapilt commented Sep 8, 2022

addresses #7741

Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm

@kapilt kapilt merged commit d5598c9 into cloud-custodian:master Sep 9, 2022
ritch2022 pushed a commit to ritch2022/cloud-custodian that referenced this pull request Oct 13, 2022
HappyKid117 pushed a commit to HappyKid117/cloud-custodian that referenced this pull request Oct 16, 2022
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.

None yet

2 participants