Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Sep 5, 2023
1 parent f8a2848 commit 1d460b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samtranslator/model/sam_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def to_cloudformation(self, **kwargs): # type: ignore[no-untyped-def] # noqa: P
"AutoPublishCodeSha256 must be a string",
)
# Lambda doesn't create a new version if the code in the unpublished version is the same as the
# previous published version. To address situations where users modify only the 'CodeUri' content,
# CloudFormation might not detect any changes in the Lambda function within the template, leading
# previous published version. To address situations where users modify only the 'CodeUri' content,
# CloudFormation might not detect any changes in the Lambda function within the template, leading
# to deployment issues. To resolve this, we'll append codesha256 value to the description.
description = intrinsics_resolver.resolve_parameter_refs(self.Description)
if not description or isinstance(description, str):
Expand Down

0 comments on commit 1d460b9

Please sign in to comment.