We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ac633 commit 3035a52Copy full SHA for 3035a52
src/cfnlint/template/transforms/transform.py
@@ -53,6 +53,13 @@ def transform(self, cfn: Any) -> list[Match]:
53
return matches
54
cfn.template = template
55
56
+ if len(transform_type) > 1:
57
+ # SAM will erase the entire Transform section
58
+ # this sets it back with all transforms except SAM
59
+ cfn.template["Transform"] = [
60
+ t for t in transform_type if t != "AWS::Serverless-2016-10-31"
61
+ ]
62
+
63
LOGGER.info("Transformed template: \n%s", format_json_string(cfn.template))
64
cfn.graph = Graph(cfn)
65
cfn.conditions = Conditions(cfn)
0 commit comments