Skip to content

Commit 1b242eb

Browse files
fix: copy data not pointer if one subclasses it
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
1 parent 7756d2c commit 1b242eb

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/utilities/batch

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/batch/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def __init__(self, event_type: EventType, model: Optional["BatchTypeModels"] = N
201201
"""
202202
self.event_type = event_type
203203
self.model = model
204-
self.batch_response = self.DEFAULT_RESPONSE
204+
self.batch_response = deepcopy(self.DEFAULT_RESPONSE)
205205
self._COLLECTOR_MAPPING = {
206206
EventType.SQS: self._collect_sqs_failures,
207207
EventType.KinesisDataStreams: self._collect_kinesis_failures,

0 commit comments

Comments
 (0)