Skip to content

Commit

Permalink
Apply change from review
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels committed Nov 10, 2023
1 parent 387ece9 commit 392a3e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. Created by changelog.py at 2023-11-09, command
.. Created by changelog.py at 2023-11-10, command
'/Users/giffler/.cache/pre-commit/repor6pnmwlm/py_env-python3.10/bin/changelog docs/source/changes compile --categories Added Changed Fixed Security Deprecated --output=docs/source/changelog.rst'
based on the format of 'https://keepachangelog.com/'
#########
CHANGELOG
#########

[Unreleased] - 2023-11-09
[Unreleased] - 2023-11-10
=========================

Fixed
Expand Down
2 changes: 1 addition & 1 deletion tardis/utilities/executors/sshexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def run_command(self, command, stdin_input=None):
async with self.bounded_connection as ssh_connection:
try:
response = await ssh_connection.run(
command, check=True, input=stdin_input and stdin_input
command, check=True, input=stdin_input
)
except asyncssh.ProcessError as pe:
raise CommandExecutionFailure(
Expand Down
4 changes: 1 addition & 3 deletions tests/utilities_t/executors_t/test_sshexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ async def run(self, command, input=None, **kwargs):
await asyncio.sleep(float(duration))
elif command != "Test":
raise ValueError(f"Unsupported mock command: {command}")
return AttributeDict(
stdout=input and input, stderr="TestError", exit_status=0
)
return AttributeDict(stdout=input, stderr="TestError", exit_status=0)

async def create_process(self):
@asynccontextmanager
Expand Down

0 comments on commit 392a3e3

Please sign in to comment.