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

retry_with_delays_and_condition could be extended to accept a display callback #80177

Open
1 task done
sivel opened this issue Mar 8, 2023 · 1 comment
Open
1 task done
Labels
affects_2.17 feature This issue/PR relates to a feature request.

Comments

@sivel
Copy link
Member

sivel commented Mar 8, 2023

Summary

Currently retry_with_delays_and_condition does not display anything in regards to retries, this is largely because the code is implemented in module_utils, and has no access to Display. Potentially the decorator could accept a callable that would accept a message. It would then be up to whatever callable is provided to decide what to do with it.

A module could just capture it, or in the case of controller code, we could pass in display.vvv or something.

Issue Type

Feature Idea

Component Name

lib/ansible/module_utils/api.py

Additional Information

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibot
Copy link
Contributor

ansibot commented Mar 8, 2023

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.15 feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. labels Mar 8, 2023
@mattclay mattclay removed the needs_triage Needs a first human triage before being processed. label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.17 feature This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

5 participants