From 508df1d7769f989c4e48d835869309fd4ed180ab Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 31 Jul 2022 09:21:03 +0000 Subject: [PATCH] ComposeContainer: Use cmd helpers to combine commands --- podman-compose-backup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/podman-compose-backup.py b/podman-compose-backup.py index 4f5095e..5fb7193 100644 --- a/podman-compose-backup.py +++ b/podman-compose-backup.py @@ -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, )