File tree 1 file changed +2
-2
lines changed
aws_lambda_powertools/utilities/data_masking
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ def _apply_action_to_fields(
315
315
if not fields :
316
316
raise ValueError ("Fields parameter cannot be empty" )
317
317
318
- data_parsed : dict = self ._normalize_data_to_parse (fields , data )
318
+ data_parsed : dict = self ._normalize_data_to_parse (data )
319
319
320
320
# For in-place updates, json_parse accepts a callback function
321
321
# this function must receive 3 args: field_value, fields, field_name
@@ -449,7 +449,7 @@ def _call_action(
449
449
)
450
450
return fields [field_name ]
451
451
452
- def _normalize_data_to_parse (self , fields : list , data : str | dict ) -> dict :
452
+ def _normalize_data_to_parse (self , data : str | dict ) -> dict :
453
453
if isinstance (data , str ):
454
454
# Parse JSON string as dictionary
455
455
data_parsed = self .json_deserializer (data )
You can’t perform that action at this time.
0 commit comments