fix missing tags issue

This commit is contained in:
Robert Kaussow 2020-09-16 15:06:06 +02:00
parent 9455790f75
commit dd6c9c4a68
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 2 additions and 9 deletions

View File

@ -1,9 +1,2 @@
- DEPRECATE
- the tag 'skip_ansible_lint' to skip tasks is deprecated
use 'skip_ansible_later' instead
- ENHANCEMENT
- add a non-enforcement rule for deprecated features
if you use a custom standards file you may have to enable `check_deprecate`
- BUGFIX
- ANSIBLE0010 - allow `shell` module if `args.executable` is used
as this parameter is no longer support by command module
- fix issue if `tags` is not defined for a task object

View File

@ -11,7 +11,7 @@ def check_deprecated(candidate, settings):
if not errors:
for task in tasks:
if "skip_ansible_lint" in task.get("tags"):
if "skip_ansible_lint" in (task.get("tags") or []):
errors.append(
Error(
task["__line__"],