Skip to content

Commit 0b7fbb9

Browse files
committed
fix logic issue
1 parent 52d3bc6 commit 0b7fbb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/sra_dynamodb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def create_table(self, table_name: str) -> None:
9191
provisioned_throughput: ProvisionedThroughputTypeDef = {"ReadCapacityUnits": 5, "WriteCapacityUnits": 5}
9292

9393
# Create table
94-
while retries < max_retries:
95-
self.LOGGER.info(f"Create table attempt {retries+1} of {max_retries}...")
96-
94+
self.LOGGER.info(f"Creating {table_name} dynamodb table...")
9795
try:
9896
self.DYNAMODB_CLIENT.create_table(
9997
TableName=table_name, KeySchema=key_schema, AttributeDefinitions=attribute_definitions, ProvisionedThroughput=provisioned_throughput

0 commit comments

Comments
 (0)