Skip to content

Add a parameter to specify expected return code in WinRMOperator #46494

@darkag

Description

@darkag

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions