From aaa41cce76376195765e8cd5d0c9a4efce8e825e Mon Sep 17 00:00:00 2001 From: cecinestpasunepipe <110607403+cecinestpasunepipe@users.noreply.github.com> Date: Wed, 16 Aug 2023 18:42:47 +0200 Subject: [PATCH] Refine integration Targetd/Acquire (DIS-2155) --- acquire/acquire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acquire/acquire.py b/acquire/acquire.py index 972a2eaa..7e078685 100644 --- a/acquire/acquire.py +++ b/acquire/acquire.py @@ -1704,7 +1704,7 @@ def print_acquire_warning(target: Target) -> None: def modargs2json(args: argparse.Namespace) -> dict: json_opts = {} for module in MODULES.values(): - cli_arg = module.__cli_args__[0][1] + cli_arg = module.__cli_args__[-1:][0][1] if opt := cli_arg.get("dest"): json_opts[opt] = getattr(args, opt) return json_opts