Skip to content

Commit d3dbe03

Browse files
authored
Better matching criteria for E2520 (#2886)
1 parent 13b157f commit d3dbe03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cfnlint/rules/resources/properties/Exclusive.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def check(self, properties, exclusions, path, cfn):
3838
for property_set in property_sets:
3939
obj = property_set["Object"].clean()
4040
for prop in obj:
41-
if prop in exclusions:
41+
if prop == k:
4242
for excl_property in exclusions[prop]:
4343
if excl_property in obj:
4444
if property_set["Scenario"] is None:

0 commit comments

Comments
 (0)