We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0510a43 commit f7d59ceCopy full SHA for f7d59ce
tagging/utils/docker_runner.py
@@ -44,11 +44,11 @@ def __exit__(
44
45
@staticmethod
46
def exec_cmd(container: Container, cmd: str, print_output: bool = True) -> str:
47
- LOGGER.info(f"Running cmd: '{cmd}' on container: {container}")
+ LOGGER.info(f"Running cmd: `{cmd}` on container: {container.name}")
48
exec_result = container.exec_run(cmd)
49
output = exec_result.output.decode().rstrip()
50
assert isinstance(output, str)
51
if print_output:
52
LOGGER.info(f"Command output: {output}")
53
- assert exec_result.exit_code == 0, f"Command: {cmd} failed"
+ assert exec_result.exit_code == 0, f"Command: `{cmd}` failed"
54
return output
0 commit comments