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 authored and Matt Ferrante committed Jan 4, 2016
1 parent 9bd904c commit 886d2ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boto/dynamodb2/table.py
Expand Up @@ -307,6 +307,12 @@ def _introspect_all_indexes(self, raw_indexes, map_indexes_projection):
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)
indexes.append(index_klass(name, **kwargs))
Expand Down

0 comments on commit 886d2ca

Please sign in to comment.