@@ -15,7 +15,7 @@ class UpdateReplacePolicy(CloudFormationLintRule):
15
15
source_url = "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html"
16
16
tags = ["resources" , "updatereplacepolicy" ]
17
17
18
- def check_value (self , key , path , res_type , has_lang_exten_transform ):
18
+ def check_value (self , key , path , res_type ):
19
19
"""Check resource names for UpdateReplacePolicy"""
20
20
matches = []
21
21
@@ -25,7 +25,7 @@ def check_value(self, key, path, res_type, has_lang_exten_transform):
25
25
26
26
supported_functions_joined = ", " .join (supported_functions )
27
27
28
- if has_lang_exten_transform and isinstance (key , dict ):
28
+ if isinstance (key , dict ):
29
29
if len (key ) == 1 :
30
30
for index_key , _ in key .items ():
31
31
if index_key not in supported_functions :
@@ -87,14 +87,8 @@ def match(self, cfn):
87
87
RuleMatch (path , message .format ("/" .join (map (str , path ))))
88
88
)
89
89
else :
90
- has_lang_exten_transform = cfn .has_language_extensions_transform ()
91
90
matches .extend (
92
- self .check_value (
93
- updatereplace_policies ,
94
- path ,
95
- res_type ,
96
- has_lang_exten_transform ,
97
- )
91
+ self .check_value (updatereplace_policies , path , res_type )
98
92
)
99
93
100
94
return matches
0 commit comments