diff --git a/aws_lambda_powertools/utilities/data_masking/base.py b/aws_lambda_powertools/utilities/data_masking/base.py index 4dea3a2fdea..db27a01840d 100644 --- a/aws_lambda_powertools/utilities/data_masking/base.py +++ b/aws_lambda_powertools/utilities/data_masking/base.py @@ -292,6 +292,7 @@ def _call_action( - None: The method does not return any value, as it updates the fields in-place. """ fields[field_name] = action(field_value, provider_options=provider_options, **encryption_context) + return fields[field_name] def _normalize_data_to_parse(self, fields: list, data: str | dict) -> dict: if not fields: