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

DynamoDB Table object not correctly updating when calling update_throughput #591

Merged
merged 1 commit into from Feb 22, 2012

Conversation

croach
Copy link
Contributor

@croach croach commented Feb 22, 2012

The update_throughput method of Layer2 calls the update_from_response
method of Table, but instead of passing in the full response (as all
other similar calls to update_from_response do) it
passes in response['TableDescription']. Since update_from_response
looks for either the key 'Table' or 'TableDescription' in the response
object, neither is found and, therefore, the table's local attributes
are not updated and do not correctly reflect the changes that have
taken place on the server. This fix passes in the full response object
to update_from_response to resolve the issue.

The update_throughput method of Layer2 calls the update_from_response
method of Table, but instead of passing in the full response (as all
other similar calls to update_from_response do in the codebase) it
passes in response['TableDescription']. Since update_from_response
looks for either the key 'Table' or 'TableDescription' in the response
object, neither is found and, therefore, the table's local attributes
are not updated and do not correctly reflect the changes that have
taken place on the server. This fix passes in the full response object
to update_from_response.
garnaat added a commit that referenced this pull request Feb 22, 2012
DynamoDB Table object not correctly updating when calling update_throughput
@garnaat garnaat merged commit 95cb52b into boto:master Feb 22, 2012
msabramo pushed a commit to msabramo/boto that referenced this pull request Nov 28, 2012
DynamoDB Table object not correctly updating when calling update_throughput
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.

None yet

2 participants