Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduces raise_on_parsing_error parameter to send_command #3406

Closed
wants to merge 3 commits into from

Conversation

Kircheneer
Copy link
Contributor

Allow exceptions from structured data parsers to bubble up to the callers of send_command and send_command_timing. This is useful for example in conjunction with nornir_netmiko, which currently can't fail tasks based on failed parsing, leading to successful tasks with garbage data.

@Kircheneer Kircheneer force-pushed the raise-on-parsing-error branch 2 times, most recently from dca07d1 to 206e4d2 Compare March 21, 2024 07:31
@Kircheneer
Copy link
Contributor Author

As discussed on Slack I have renamed the parameter and added an initial set of tests.

@Kircheneer
Copy link
Contributor Author

Please approve CI workflow whenever possible. Thanks!

@Kircheneer Kircheneer marked this pull request as ready for review March 26, 2024 09:17
Allow exceptions from structured data parsers to bubble up to the
callers of `send_command` and `send_command_timing`. This is useful for
example in conjunction with `nornir_netmiko`, which currently can't fail
tasks based on failed parsing, leading to successful tasks with garbage
data.
@tom0010
Copy link

tom0010 commented Aug 20, 2024

Looks to fix #3479

@ktbyers
Copy link
Owner

ktbyers commented Sep 3, 2024

Superseded by #3494

@ktbyers ktbyers closed this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants