ComposeContainer: Use cmd helpers to combine commands

main
Felix Stupp 2 years ago
parent 5ab9cf1b7f
commit 508df1d776
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -314,16 +314,16 @@ class ComposeContainer:
def exec_cmd(
self, command: CommandArgs, workdir: Optional[str] = None
) -> CommandArgs:
return CommandArgs(
PODMAN_EXEC
+ [
return combine_cmds(
PODMAN_EXEC,
[
"container",
"exec",
"--interactive=false",
None if workdir is None else f"--workdir={workdir}",
self.container_name,
]
+ command
],
command,
)

Loading…
Cancel
Save