darkag opened a new issue, #46494:
URL: https://github.com/apache/airflow/issues/46494
### Description
Hello, currently WinRMOperator return is marked as success only if the
launched command return 0. Adding an expected_return_code parameter could allow
dealing with command that doesn't return 0 on success without making
"conversion" in an englobing batch.
### Use case/motivation
When launching a [robocopy
command](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy),
return code from 0 to 7 may be considered as success.
### Related issues
_No response_
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscr...@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org