Commit 0806f84
authored
Fix false positive E3062 when EngineVersion is unquoted float (#4454)
When YAML parses an unquoted EngineVersion like 17.6, it becomes a
float instead of a string. The pattern keyword passed the raw float
to re.search(), which raises a TypeError on non-string input.
Fix the pattern keyword to accept int, float, and bool types and
convert to str before matching — consistent with how const and enum
already handle type coercion via the equal() function.
Fixes #44451 parent d5f0aed commit 0806f84
5 files changed
Lines changed: 4056 additions & 2518 deletions
File tree
- scripts
- src/cfnlint
- data/schemas/extensions/aws_rds_dbinstance
- jsonschema
- test/unit
- module/jsonschema
- rules/resources/rds
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments