1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Fix typing failure in CI (#11030)

* Fix typing failure in CI.

* Add changelog fragment.
This commit is contained in:
Felix Fontein 2025-11-05 21:49:32 +01:00 committed by GitHub
parent 980e8e2d49
commit b471a4a90d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "wsl connection plugin - rename variable to fix type checking (https://github.com/ansible-collections/community.general/pull/11030)."

View file

@ -613,14 +613,14 @@ class Connection(ConnectionBase):
display.vvv(f"EXEC {cmd}", host=self.get_option("remote_addr"))
cmd = to_bytes(cmd, errors="surrogate_or_strict")
cmd_b = to_bytes(cmd, errors="surrogate_or_strict")
no_prompt_out = b""
no_prompt_err = b""
become_output = b""
try:
chan.exec_command(cmd)
chan.exec_command(cmd_b)
if self.become and self.become.expect_prompt():
password_prompt = False
become_success = False