mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 21:00:44 +00:00
fix missing __ansible_action_meta__
This commit is contained in:
parent
d4f1575e91
commit
479f6b9855
@ -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)
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user