Skip to content

Commit

Permalink
Debug PRT
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 19, 2024
1 parent 6b88e8e commit fb3271a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions broker/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def execute(self, command, timeout=None):
Returns:
str: The output of the command executed on the host.
"""
breakpoint()
timeout = timeout or self.default_timeout
logger.debug(f"{self.hostname} executing command: {command}")
res = self.session.run(command, timeout=timeout)
Expand Down
3 changes: 3 additions & 0 deletions broker/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ def run(self, command, demux=True, **kwargs):
# Containers don't handle pipes, redirects, etc well in a bare exec_run
command = f"/bin/bash -c '{command}'"
result = self._cont_inst._cont_inst.exec_run(command, **kwargs)
logger.info(f"tpapaioa ContainerSession result 1: {command=} {result=}")
if demux:
result = helpers.Result.from_duplexed_exec(result, self.runtime)
logger.info(f"tpapaioa ContainerSession result demux: {result=}")
else:
result = helpers.Result.from_nonduplexed_exec(result)
logger.info(f"tpapaioa ContainerSession result nonduplex: {result=}")
return result

def disconnect(self):
Expand Down

0 comments on commit fb3271a

Please sign in to comment.