From f7a3031c959b1d465f69b44e53ff5e3152f97684 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Mon, 2 Sep 2024 08:06:47 -0700 Subject: [PATCH] Another fix to pretty printer --- src/cfnlint/formatters/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfnlint/formatters/pretty.py b/src/cfnlint/formatters/pretty.py index 65abee7eca..716205f121 100644 --- a/src/cfnlint/formatters/pretty.py +++ b/src/cfnlint/formatters/pretty.py @@ -28,7 +28,7 @@ def print_matches(self, matches, rules, config): # ruff: noqa: E501 results.append( - f"Cfn-lint scanned {colored(len(config.templates) if config.templates else 1, color.bold_reset)}" + f"Cfn-lint scanned {colored(1 if config.templates is None else len(config.templates), color.bold_reset)}" " templates against " f"{colored(len(rules.used_rules), color.bold_reset)} rules and found " f'{colored(len([i for i in matches if i.rule.severity.lower() == "error"]), color.error)} '