bdsoha commented on code in PR #27370:
URL: https://github.com/apache/airflow/pull/27370#discussion_r1022376116


##########
airflow/providers/ssh/operators/ssh.py:
##########
@@ -134,16 +134,18 @@ def exec_ssh_client_command(self, ssh_client: SSHClient, 
command: str):
             ssh_client, command, timeout=self.cmd_timeout, 
environment=self.environment, get_pty=self.get_pty
         )
 
-    def raise_for_status(self, exit_status: int, stderr: bytes) -> None:
+    def raise_for_status(self, exit_status: int, stderr: bytes, **kwargs) -> 
None:
+        ti=kwargs["context"].get("task_instance")

Review Comment:
   ```suggestion
   ti = kwargs["context"].get("task_instance")
   ```



##########
airflow/providers/ssh/operators/ssh.py:
##########
@@ -134,16 +134,18 @@ def exec_ssh_client_command(self, ssh_client: SSHClient, 
command: str):
             ssh_client, command, timeout=self.cmd_timeout, 
environment=self.environment, get_pty=self.get_pty
         )
 
-    def raise_for_status(self, exit_status: int, stderr: bytes) -> None:
+    def raise_for_status(self, exit_status: int, stderr: bytes, **kwargs) -> 
None:
+        ti=kwargs["context"].get("task_instance")

Review Comment:
   ```suggestion
           ti = kwargs["context"].get("task_instance")
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to