fix missing __ansible_action_meta__

This commit is contained in:
Robert Kaussow 2020-10-07 23:30:22 +02:00
parent d4f1575e91
commit 479f6b9855
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
- INTERNAL - BUGFIX
- migrate to thegeeklab namespace - fix missing `__ansible_action_meta__` in normalized tasks (https://github.com/thegeeklab/ansible-later/issues/37)

View File

@ -194,7 +194,7 @@ def check_command_has_changes(candidate, settings):
if task["action"]["__ansible_module__"] in commands: if task["action"]["__ansible_module__"] in commands:
if ( if (
"changed_when" not in task and "when" not in task "changed_when" not in task and "when" not in task
and "when" not in task["__ansible_action_meta__"] and "when" not in task.get("__ansible_action_meta__", [])
and "creates" not in task["action"] and "removes" not in task["action"] and "creates" not in task["action"] and "removes" not in task["action"]
): ):
errors.append(Error(task["__line__"], description)) errors.append(Error(task["__line__"], description))