From b56022228161194347a401d5fc2b815d380d747f Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 19 Jan 2021 22:33:30 +0100 Subject: [PATCH] fix: wrong check for candidates faulty flag --- ansiblelater/utils/rulehelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansiblelater/utils/rulehelper.py b/ansiblelater/utils/rulehelper.py index 340fb59..c7df5da 100644 --- a/ansiblelater/utils/rulehelper.py +++ b/ansiblelater/utils/rulehelper.py @@ -89,7 +89,7 @@ def get_normalized_tasks(candidate, settings, full=False): normalized = [] errors = [] - if candidate.faulty: + if not candidate.faulty: try: with codecs.open(candidate.path, mode="rb", encoding="utf-8") as f: yamllines = parse_yaml_linenumbers(f, candidate.path)