Skip to content

Commit

Permalink
fix remote host
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Jun 28, 2023
1 parent c2791e6 commit f0a9e77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qtoolkit/host/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def execute(self, command: str | list[str], workdir: str | Path | None = None):
exit_code : int
Exit code of the command.
"""

if isinstance(command, (list, tuple)):
command = " ".join(command)

# TODO: check here if we use the context manager. What happens if we provide the
# connection from outside (not through a config) and we want to keep it alive ?

Expand Down

0 comments on commit f0a9e77

Please sign in to comment.