From d6a1f2b655ec5170324bb7f2274cf4ca0a6de147 Mon Sep 17 00:00:00 2001 From: patdyn Date: Thu, 27 Jun 2024 16:23:01 +0200 Subject: [PATCH] Update command for live exec --- src/main/python/ddadevops/infrastructure/infrastructure.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index 6e8e1df..2007119 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -225,9 +225,7 @@ class TerraformBackendGitApi: env = "" for key in credentials: env = env + f'{key}' + "=" + f'{credentials[key]}' + " " - self.execution_api.execute(f'{env}' + " " + "terraform-backend-git &") - self.execution_api.execute('sleep 3') - + self.execution_api.execute_live(f"{env} nohup terraform-backend-git &") def stop(self): self.execution_api.execute("terraform-backend-git stop")