Skip to content

Commit f3f7c38

Browse files
authored
Rebuild Conditions if a SAM transform (#2720)
1 parent 64164b5 commit f3f7c38

File tree

3 files changed

+420
-0
lines changed

3 files changed

+420
-0
lines changed

src/cfnlint/runner.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
from typing import List, Optional, Sequence, Union
77

8+
from cfnlint.conditions import Conditions
89
from cfnlint.graph import Graph
910
from cfnlint.rules import Match, RulesCollection
1011
from cfnlint.template import Template
@@ -53,6 +54,7 @@ def transform(self):
5354
matches = transform.transform_template()
5455
self.cfn.template = transform.template()
5556
self.cfn.graph = Graph(self.cfn)
57+
self.cfn.conditions = Conditions(self.cfn)
5658
return matches
5759

5860
def run(self) -> List[Match]:

0 commit comments

Comments
 (0)