Skip to content

Commit e22d8eb

Browse files
committed
Fix SSHClient.execute_together for ExecHelperTimeoutError preparation
Wrong variable expected.
1 parent 06b547f commit e22d8eb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

exec_helpers/_ssh_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,8 @@ def get_result(remote: SSHClientBase) -> exec_result.ExecResult:
17451745
if done:
17461746
res.exit_code = async_result.interface.recv_exit_status()
17471747
return res
1748-
result.set_timestamp()
1748+
1749+
res.set_timestamp()
17491750

17501751
wait_err_msg: str = _log_templates.CMD_WAIT_ERROR.format(result=res, timeout=timeout)
17511752
remote.logger.debug(wait_err_msg)

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ extend-select = [
179179
"ISC", # flake8-implicit-str-concat
180180
"RET", "SIM", "C4", # flake8-return, flake8-simplify, flake8-comprehensions
181181
"ICN", "PGH", # flake8-import-conventions, pygrep-hooks
182+
"TID", # flake8-tidy-imports
182183
"Q", # quotes
183184
"FLY", # Flynt
184185
"FURB", # Refurb
@@ -191,6 +192,7 @@ extend-ignore = [
191192
"RET504", # Unnecessary variable assignment before return statement
192193
"SIM108", # Use ternary operator,
193194
"TRY003", # long messages prepare outside, ...
195+
"TID252", # relative imports from parent modules
194196
]
195197

196198
[tool.ruff.lint.isort]
@@ -203,6 +205,9 @@ allow-dunder-method-names = ["__pretty_repr__", "__pretty_str__", "__rich_repr__
203205
[tool.ruff.lint.pydocstyle]
204206
convention = "pep257"
205207

208+
[tool.ruff.format]
209+
docstring-code-format = true
210+
206211
[tool.refurb]
207212
python_version = "3.8"
208213
enable_all = true

0 commit comments

Comments
 (0)