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)