mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 19:26:58 +00:00
[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 b471a4a90d)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
a22c77ab75
commit
c8ad571e27
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/11030-wsl-typing.yml
Normal file
2
changelogs/fragments/11030-wsl-typing.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "wsl connection plugin - rename variable to fix type checking (https://github.com/ansible-collections/community.general/pull/11030)."
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue