fix missing tags issue

This commit is contained in:
Robert Kaussow 2020-09-16 15:06:06 +02:00
parent 9455790f75
commit dd6c9c4a68
No known key found for this signature in database
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 - BUGFIX
- ANSIBLE0010 - allow `shell` module if `args.executable` is used - fix issue if `tags` is not defined for a task object
as this parameter is no longer support by command module

View File

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