Apply minor suggestions from code review

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
Stanislav Shamilov 2024-12-12 13:51:12 +02:00 committed by GitHub
parent 7e1af46af6
commit baa5f65328
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -43,7 +43,7 @@ def sdkmanager_runner(module, **kwargs):
installed=cmd_runner_fmt.as_fixed("--list_installed"),
list=cmd_runner_fmt.as_fixed('--list'),
newer=cmd_runner_fmt.as_fixed("--newer"),
sdk_root=cmd_runner_fmt.as_opt_eq_val("--sdk_root", ignore_none=True),
sdk_root=cmd_runner_fmt.as_opt_eq_val("--sdk_root"),
channel=cmd_runner_fmt.as_func(lambda x: ["{0}={1}".format("--channel", __map_channel(x))])
),
force_lang="C.UTF-8", # Without this, sdkmanager binary crashes

View file

@ -25,6 +25,7 @@ attributes:
support: full
diff_mode:
support: none
version_added: 10.2.0
options:
name:
description: