Skip to content

Commit c8ad571

Browse files
[PR #11030/b471a4a9 backport][stable-12] Fix typing failure in CI (#11034)
Fix typing failure in CI (#11030) * Fix typing failure in CI. * Add changelog fragment. (cherry picked from commit b471a4a) Co-authored-by: Felix Fontein <[email protected]>
1 parent a22c77a commit c8ad571

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- "wsl connection plugin - rename variable to fix type checking (https://github.com/ansible-collections/community.general/pull/11030)."

plugins/connection/wsl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,14 +613,14 @@ def exec_command(self, cmd: str, in_data: bytes | None = None, sudoable: bool =
613613

614614
display.vvv(f"EXEC {cmd}", host=self.get_option("remote_addr"))
615615

616-
cmd = to_bytes(cmd, errors="surrogate_or_strict")
616+
cmd_b = to_bytes(cmd, errors="surrogate_or_strict")
617617

618618
no_prompt_out = b""
619619
no_prompt_err = b""
620620
become_output = b""
621621

622622
try:
623-
chan.exec_command(cmd)
623+
chan.exec_command(cmd_b)
624624
if self.become and self.become.expect_prompt():
625625
password_prompt = False
626626
become_success = False

0 commit comments

Comments
 (0)