diff --git a/cattle/cattle_cli.py b/cattle/cattle_cli.py index 614b0fd..093f880 100644 --- a/cattle/cattle_cli.py +++ b/cattle/cattle_cli.py @@ -114,7 +114,8 @@ def transfer(self, archive: str, executable: str, exec_dir: str): shutil.copy(executable, exec_dir) def exec_command(self, cmd: str): - proc = subprocess.run(cmd, capture_output=True, check=True, shell=True) + proc = subprocess.run(cmd, check=True, shell=True, + stdout=subprocess.PIPE, stderr=subprocess.PIPE) return proc.stdout.decode().strip() class HostRunner: