From c58797103bd786a0e977744f8cd323b8a058705d Mon Sep 17 00:00:00 2001 From: yashsinghcodes Date: Tue, 22 Apr 2025 23:03:18 +0530 Subject: [PATCH] output stderr when running ssh commands --- shuffle-tools/1.2.0/src/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shuffle-tools/1.2.0/src/app.py b/shuffle-tools/1.2.0/src/app.py index 4707538c..6ae688cd 100644 --- a/shuffle-tools/1.2.0/src/app.py +++ b/shuffle-tools/1.2.0/src/app.py @@ -2632,6 +2632,11 @@ def run_ssh_command(self, host, port, user_name, private_key_file_id, password, try: stdin, stdout, stderr = ssh_client.exec_command(str(command)) + + stderr_ouput = stderr.read().decode(errors='ignore') + + if stderr_ouput: + return {"success": "true", "message": stderr_ouput} except Exception as e: return {"success":"false","message":str(e)}