@@ -132,8 +132,8 @@ def rule_func(value, expected_values, path):
132
132
def CreateGreaterRule (rule_id , resourceType , prop , value , error_message ):
133
133
def rule_func (value , expected_value , path ):
134
134
matches = []
135
- if checkInt (value .strip ()) and checkInt (str (expected_value ).strip ()):
136
- if value .strip (). lower ( ) < str (expected_value ).strip (). lower ( ):
135
+ if checkInt (str ( value ) .strip ()) and checkInt (str (expected_value ).strip ()):
136
+ if int ( str ( value ) .strip ()) < int ( str (expected_value ).strip ()):
137
137
matches .append (
138
138
cfnlint .rules .RuleMatch (
139
139
path , error_message or "Greater than check failed"
@@ -163,8 +163,8 @@ def rule_func(value, expected_value, path):
163
163
def CreateLesserRule (rule_id , resourceType , prop , value , error_message ):
164
164
def rule_func (value , expected_value , path ):
165
165
matches = []
166
- if checkInt (value .strip ()) and checkInt (str (expected_value ).strip ()):
167
- if value .strip (). lower ( ) > str (expected_value ).strip (). lower ( ):
166
+ if checkInt (str ( value ) .strip ()) and checkInt (str (expected_value ).strip ()):
167
+ if int ( str ( value ) .strip ()) > int ( str (expected_value ).strip ()):
168
168
matches .append (
169
169
cfnlint .rules .RuleMatch (
170
170
path , error_message or "Lesser than check failed"
0 commit comments