From 86076c7ed82b6536e3d3c90a90d2b1769a5f7563 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 29 Oct 2023 22:26:15 -0600 Subject: [PATCH] Fix deployer.exec() (#619) --- 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