From a8789dc157fd0c0e8f188d012a3e7742c15b8236 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 29 Oct 2023 22:21:56 -0600 Subject: [PATCH] Fix deployer.exec() --- app/deploy/compose/deploy_docker.py | 4 ++-- app/deploy/deployer.py | 2 +- app/deploy/k8s/deploy_k8s.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/deploy/compose/deploy_docker.py b/app/deploy/compose/deploy_docker.py index 03306346..6a70f318 100644 --- a/app/deploy/compose/deploy_docker.py +++ b/app/deploy/compose/deploy_docker.py @@ -48,9 +48,9 @@ class DockerDeployer(Deployer): except DockerException as e: raise DeployerException(e) - def execute(self, service, command, envs): + def execute(self, service, command, tty, envs): try: - return self.docker.compose.execute(service=service, command=command, envs=envs) + return self.docker.compose.execute(service=service, command=command, tty=tty, envs=envs) except DockerException as e: raise DeployerException(e) diff --git a/app/deploy/deployer.py b/app/deploy/deployer.py index b46a2d23..51b6010d 100644 --- a/app/deploy/deployer.py +++ b/app/deploy/deployer.py @@ -35,7 +35,7 @@ class Deployer(ABC): pass @abstractmethod - def execute(self, service_name, command, envs): + def execute(self, service_name, command, tty, envs): pass @abstractmethod diff --git a/app/deploy/k8s/deploy_k8s.py b/app/deploy/k8s/deploy_k8s.py index e67f3974..bb1fcd87 100644 --- a/app/deploy/k8s/deploy_k8s.py +++ b/app/deploy/k8s/deploy_k8s.py @@ -81,7 +81,7 @@ class K8sDeployer(Deployer): # Also look into whether it makes sense to get ports for k8s pass - def execute(self, service_name, command, envs): + def execute(self, service_name, command, tty, envs): # Call the API to execute a command in a running container pass -- 2.45.2