PERF403: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 19:57:45 +02:00
parent c65bb0b1ce
commit 7f1590c729
2 changed files with 4 additions and 8 deletions

View File

@@ -58,10 +58,7 @@ def ssh_command(args: argparse.Namespace) -> None:
raise ClanError(msg)
# Convert ssh_option list to dictionary
ssh_options = {}
if args.ssh_option:
for name, value in args.ssh_option:
ssh_options[name] = value
ssh_options = dict(args.ssh_option) if args.ssh_option else {}
remote = remote.override(
host_key_check=args.host_key_check,