Skip to content

Please include operators to help with debugging #1329

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

Open
goetzk opened this issue Apr 1, 2025 · 0 comments
Open

Please include operators to help with debugging #1329

goetzk opened this issue Apr 1, 2025 · 0 comments

Comments

@goetzk
Copy link
Contributor

goetzk commented Apr 1, 2025

Is your feature request related to a problem? Please describe

This was discussed in the pyinfra chat at the start of February but doesn’t look like it was ever requested on the record.

Quoting members of the chat:
"One other thing I'd love to see is some easier way besides the callback dance to get output either while a command is running, or immediately following the command; in Ansible the typical way was to run a command, register a variable, and then use the 'debug' module to dump it to screen. (Maybe there is an easier way but right now i'm using callbacks)"

"Sounds like pyinfra needs some debug.* operations which are basically callbacks to print command outputs/etc as part of the operation flow 🤔 (That was @Fizzadar )

Describe the solution you'd like

A builtin way to check the content/state of a previously registered tasks output.

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

No branches or pull requests

1 participant