From 6e29780cffa8873e77c476a54dfeaed351ea18c8 Mon Sep 17 00:00:00 2001 From: David Kubek Date: Mon, 12 Jun 2023 11:30:55 +0200 Subject: [PATCH 14/18] Fix invalid type check The `isinstance` type check in `report_info` checks the type of an incorrect variable. This commit fixes the issue. --- leapp/utils/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leapp/utils/output.py b/leapp/utils/output.py index 686b3af..fc60442 100644 --- a/leapp/utils/output.py +++ b/leapp/utils/output.py @@ -107,7 +107,7 @@ def report_errors(errors): def report_info(report_paths, log_paths, answerfile=None, fail=False): report_paths = [report_paths] if not isinstance(report_paths, list) else report_paths - log_paths = [log_paths] if not isinstance(report_paths, list) else log_paths + log_paths = [log_paths] if not isinstance(log_paths, list) else log_paths if log_paths: sys.stdout.write("\n") -- 2.41.0