From a4cdf051ff618d1a55cc7e963696b1d0911df918 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 12 Jul 2023 14:37:21 +0200 Subject: [PATCH] Linting --- src/main/python/ddadevops/infrastructure/infrastructure.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index 3747417..518dcc5 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -110,20 +110,19 @@ class ExecutionApi: print(line.decode("utf-8"), end="") process.stdout.close() process.wait() - + def run_handled(self, command: str, shell=True, check=True): try: run( command, shell=shell, - check=check, + check=check, capture_output=True, text=True) except CalledProcessError as exc: print("Command failed with code: ", exc.returncode, " and message:", exc.stderr) - class EnvironmentApi: def get(self, key): return environ.get(key)