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, return code from 0 to 7 may be considered as success.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct