Skip to content

Commit

Permalink
Fix cfnlint breaking changes
Browse files Browse the repository at this point in the history
cfnlint 1.3.0 has removed the cfnlint.core.configure_logging() function
  • Loading branch information
viren-nadkarni committed Jun 20, 2024
1 parent ae4667a commit d79db07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moto/cloudformation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _f(loader: Any, tag: Any, node: Any) -> Any:

def validate_template_cfn_lint(template: str) -> List[Any]:
# Importing cfnlint adds a significant overhead, so we keep it local
from cfnlint import core, decode
from cfnlint import config, core, decode

# Save the template to a temporary file -- cfn-lint requires a file
filename = "file.tmp"
Expand All @@ -76,7 +76,7 @@ def validate_template_cfn_lint(template: str) -> List[Any]:
template, matches = decode.decode(abs_filename)

# Set cfn-lint to info
core.configure_logging(None)
config.configure_logging(None, False)

# Initialize the ruleset to be applied (no overrules, no excludes)
rules = core.get_rules([], [], [])
Expand Down

0 comments on commit d79db07

Please sign in to comment.