From 4297d6063970d5638e144c8716aa6f88c20bf4a1 Mon Sep 17 00:00:00 2001 From: Sumit Jaiswal Date: Thu, 13 Jun 2024 09:44:03 +0530 Subject: [PATCH] fix adding module_defaults to tasks (#239) Signed-off-by: Sumit Jaiswal --- ansible_risk_insight/finder.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ansible_risk_insight/finder.py b/ansible_risk_insight/finder.py index 8c8236c6..58b72702 100644 --- a/ansible_risk_insight/finder.py +++ b/ansible_risk_insight/finder.py @@ -203,10 +203,6 @@ def flatten_block_tasks(task_dict, module_defaults={}): tasks_in_item = flatten_block_tasks(t_dict, _module_defaults) tasks.extend(tasks_in_item) - if _module_defaults: - for i in range(len(tasks)): - tasks[i]["module_defaults"] = _module_defaults - return tasks