Skip to content

Commit

Permalink
fix for throughput not showing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrants committed Dec 31, 2015
1 parent 5cc5326 commit 4225aaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boto/dynamodb2/table.py
Expand Up @@ -305,6 +305,12 @@ def _introspect_all_indexes(self, raw_indexes, map_indexes_projection):
"https://github.com/boto/boto/issues." % \
field['Projection']['ProjectionType']
)

if 'ProvisionedThroughput' in field:
raw_throughput = field['ProvisionedThroughput']
kwargs['throughput'] = {}
kwargs['throughput']['read'] = int(raw_throughput['ReadCapacityUnits'])
kwargs['throughput']['write'] = int(raw_throughput['WriteCapacityUnits'])

name = field['IndexName']
kwargs['parts'] = self._introspect_schema(field['KeySchema'], None)
Expand Down

0 comments on commit 4225aaf

Please sign in to comment.