fix: add 'always' to allowed prevlines for CheckTaskSeparation (#241)

This commit is contained in:
Robert Kaussow 2021-10-11 21:26:33 +02:00 committed by GitHub
parent b8d4783646
commit 58336d35dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ class CheckTaskSeparation(StandardBase):
task_regex = re.compile(r"-\sname:(.*)")
prevline = "#file_start_marker"
allowed_prevline = ["---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:"]
allowed_prevline = [
"---", "tasks:", "pre_tasks:", "post_tasks:", "block:", "rescue:", "always:"
]
errors = task_errors + line_errors
if not errors: