From fce4cfd46e4b6ef4652eff96f462ad8a8b34a6c8 Mon Sep 17 00:00:00 2001 From: glrs <5999366+glrs@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:57:58 +0200 Subject: [PATCH] Fix prompt issue in ngi_report_generator --- lib/module_utils/ngi_report_generator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/module_utils/ngi_report_generator.py b/lib/module_utils/ngi_report_generator.py index 18673ff..1add063 100644 --- a/lib/module_utils/ngi_report_generator.py +++ b/lib/module_utils/ngi_report_generator.py @@ -44,7 +44,11 @@ def generate_ngi_report( # NOTE: Perhaps use `check=False` to prevent raising # CalledProcessError on non-zero exit codes process = subprocess.run( - full_cmd, shell=True, text=True, capture_output=True # , check=False + full_cmd, + shell=True, + text=True, + capture_output=True, + input="y\n", # , check=False ) # Check the outcome of the subprocess