1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-07 12:37:17 +00:00

[PR #11190/9a3e26ad backport][stable-12] fix ruff case SIM112 (#11194)

fix ruff case SIM112 (#11190)

(cherry picked from commit 9a3e26ad98)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-11-23 08:58:35 +01:00 committed by GitHub
parent 9cdeb5a9b9
commit 084ecd96e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -587,7 +587,7 @@ class Connection(ConnectionBase):
args.extend(["--user", wsl_user])
args.extend(["--"])
args.extend(shlex.split(cmd))
if os.getenv("_ANSIBLE_TEST_WSL_CONNECTION_PLUGIN_Waeri5tepheeSha2fae8"):
if os.getenv("_ANSIBLE_TEST_WSL_CONNECTION_PLUGIN_WAERI5TEPHEESHA2FAE8"):
return shlex.join(args)
return list2cmdline(args) # see https://github.com/python/cpython/blob/3.11/Lib/subprocess.py#L576