Skip to content

expect - hide responses from the invocation with echo=false #82238

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
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

s-hertel
Copy link
Contributor

SUMMARY

Fixes #82188

Modules don't usually sanitize their own invocation this way, so I'm wondering if this be better as a more general feature to hide task invocations.

ISSUE TYPE
  • Feature Pull Request
ADDITIONAL INFORMATION

@ansibot ansibot added feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. module This issue/PR relates to a module. has_issue labels Nov 17, 2023
@s-hertel s-hertel added the ci_verified Changes made in this PR are causing tests to fail. label Nov 17, 2023
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Nov 17, 2023
@bcoca
Copy link
Member

bcoca commented Nov 20, 2023

Modules don't usually sanitize their own invocation this way, so I'm wondering if this be better as a more general feature to hide task invocations.

That is what we have no_log for, but this is one rare case in which the value would be conditional on another option. I can only think of this and pause needing this feature, as it is rare for modules to have to handle interactive input/output.

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Nov 20, 2023
@s-hertel
Copy link
Contributor Author

s-hertel commented Nov 21, 2023

That is what we have no_log for, but this is one rare case in which the value would be conditional on another option.

Making responses a no_log option seems like a better fit than using a module option for this. We decided in triage this approach is fine.

I can only think of this and pause needing this feature, as it is rare for modules to have to handle interactive input/output.

Any module option could be secret, not just related to input/output, and be visible with -vvv unless the option is no_log or the no_log keyword is used. The current solution to #82188 is set no_log on the task, but this obscures the whole task not just the module input.

This won't be an issue for pause specifically, since it's an action plugin and doesn't return the invocation.

@s-hertel s-hertel added the ci_verified Changes made in this PR are causing tests to fail. label Nov 21, 2023
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Nov 21, 2023
@s-hertel s-hertel marked this pull request as ready for review November 27, 2023 17:24
@ansibot ansibot removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. ci_verified Changes made in this PR are causing tests to fail. labels Nov 27, 2023
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Dec 11, 2023
@ansibot ansibot added the stale_pr This PR has not been pushed to for more than one year. label Jan 28, 2025
@s-hertel s-hertel force-pushed the expect-responses-invocation branch from 28dcd7a to 1128398 Compare January 30, 2025 18:11
@ansibot ansibot removed stale_pr This PR has not been pushed to for more than one year. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jan 30, 2025
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Feb 13, 2025
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request. has_issue module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ansible.builtin.expect echo arg doesn't work as expected
3 participants