File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
aws_sra_examples/solutions/genai/bedrock_org/lambda/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -569,11 +569,12 @@ def remove_state_table_record(resource_arn):
569569 )
570570 if item_found is False :
571571 LOGGER .info (f"Record not found in { STATE_TABLE } dynamodb table" )
572+ response = {}
572573 else :
573574 sra_resource_record_id = find_result ["record_id" ]
574575 LOGGER .info (f"Found record id { sra_resource_record_id } " )
575- LOGGER .info (f"Removing { sra_resource_record_id } from { STATE_TABLE } dynamodb table..." )
576- response = dynamodb .delete_item (STATE_TABLE , dynamodb_resource , SOLUTION_NAME , sra_resource_record_id )
576+ LOGGER .info (f"Removing { sra_resource_record_id } from { STATE_TABLE } dynamodb table..." )
577+ response = dynamodb .delete_item (STATE_TABLE , dynamodb_resource , SOLUTION_NAME , sra_resource_record_id )
577578 return response
578579
579580
You can’t perform that action at this time.
0 commit comments