Update command for live exec

This commit is contained in:
patdyn 2024-06-27 16:23:01 +02:00
parent eb18eb03bc
commit d6a1f2b655

View file

@ -225,9 +225,7 @@ class TerraformBackendGitApi:
env = "" env = ""
for key in credentials: for key in credentials:
env = env + f'{key}' + "=" + f'{credentials[key]}' + " " env = env + f'{key}' + "=" + f'{credentials[key]}' + " "
self.execution_api.execute(f'{env}' + " " + "terraform-backend-git &") self.execution_api.execute_live(f"{env} nohup terraform-backend-git &")
self.execution_api.execute('sleep 3')
def stop(self): def stop(self):
self.execution_api.execute("terraform-backend-git stop") self.execution_api.execute("terraform-backend-git stop")