mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
fix missing __ansible_action_meta__
This commit is contained in:
parent
d4f1575e91
commit
479f6b9855
@ -1,2 +1,2 @@
|
||||
- INTERNAL
|
||||
- migrate to thegeeklab namespace
|
||||
- BUGFIX
|
||||
- fix missing `__ansible_action_meta__` in normalized tasks (https://github.com/thegeeklab/ansible-later/issues/37)
|
||||
|
@ -194,7 +194,7 @@ def check_command_has_changes(candidate, settings):
|
||||
if task["action"]["__ansible_module__"] in commands:
|
||||
if (
|
||||
"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"]
|
||||
):
|
||||
errors.append(Error(task["__line__"], description))
|
||||
|
Loading…
Reference in New Issue
Block a user