hussein-awala commented on code in PR #36303:
URL: https://github.com/apache/airflow/pull/36303#discussion_r1432001381


##########
airflow/providers/ssh/operators/ssh.py:
##########
@@ -156,6 +167,8 @@ def raise_for_status(self, exit_status: int, stderr: bytes, 
context=None) -> Non
         if context and self.do_xcom_push:
             ti = context.get("task_instance")
             ti.xcom_push(key="ssh_exit", value=exit_status)
+        if self.skip_on_exit_code is not None and exit_status in 
self.skip_on_exit_code:

Review Comment:
   It will never be None:
   ```python
   self.skip_on_exit_code = (
         skip_on_exit_code
         if isinstance(skip_on_exit_code, Container)
         else [skip_on_exit_code]
         if skip_on_exit_code
         else []
     )
   ```
   ```suggestion
           if exit_status in self.skip_on_exit_code:
   ```



-- 
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