fix scan return CapacityUnits
This commit is contained in:
parent
ba187e94b8
commit
51c3fec6dd
2 changed files with 39 additions and 2 deletions
|
|
@ -427,7 +427,10 @@ class DynamoHandler(BaseResponse):
|
|||
result = {
|
||||
"Count": len(items),
|
||||
"Items": [item.attrs for item in items],
|
||||
"ConsumedCapacityUnits": 1,
|
||||
'ConsumedCapacity': {
|
||||
'TableName': name,
|
||||
'CapacityUnits': 1,
|
||||
},
|
||||
"ScannedCount": scanned_count
|
||||
}
|
||||
if last_evaluated_key is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue