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

Fix filter method from clobering identifier params #154

Merged
merged 1 commit into from
Jun 29, 2015

Conversation

kyleknap
Copy link
Contributor

This especially affects ec2 operations where the identifier is injected into the Filters param. So if the Filters param was specified in the filter() method, the identifier part in the Filters param would get clobbered.

Fixes: #148

Note the tests will not pass till this PR is merged: boto/botocore#592

cc @jamesls @mtdowling

This especially affects ec2 operations where the identifier is injected
into the Filters param. So if the Filters param was specified in the filter()
method, the identifier part in the Filters param would get clobbered.

self.parent.id = 'my-id'
list(collection.filter(
Filters=[{'Name': 'another-filter', 'Values': ['foo']}]))
Copy link
Member

Choose a reason for hiding this comment

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

indentation's off.

Copy link
Member

Choose a reason for hiding this comment

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

wait, nevermind, I see, this is an indent from the second paren.

@jamesls
Copy link
Member

jamesls commented Jun 25, 2015

:shipit: Looks good once the botocore PR gets merged.

kyleknap added a commit that referenced this pull request Jun 29, 2015
Fix filter method from clobering identifier params
@kyleknap kyleknap merged commit 8318479 into boto:develop Jun 29, 2015
@kyleknap kyleknap deleted the merge-dicts-collections branch June 29, 2015 17:29
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.

2 participants