Skip to content

Commit

Permalink
Set Applicaiton location when its a string
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Feb 16, 2024
1 parent d3e1012 commit 4e5b5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cfnlint/template/transforms/_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _replace_local_codeuri(self):
Transform._update_to_s3_uri("ContentUri", resource_dict)
if resource_type == "AWS::Serverless::Application":
if resource_dict.get("Location"):
if isinstance(resource_dict.get("Location"), dict):
if isinstance(resource_dict.get("Location"), (str, dict)):
resource_dict["Location"] = ""
Transform._update_to_s3_uri("Location", resource_dict)
if resource_type == "AWS::Serverless::Api":
Expand Down

0 comments on commit 4e5b5c8

Please sign in to comment.