-
Notifications
You must be signed in to change notification settings - Fork 153
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
add no_log=False to clear false-positives #156
add no_log=False to clear false-positives #156
Conversation
recheck |
Related modules: authorized_key, mount.
403c581
to
c8b5887
Compare
It seems Ansible Zuul check shell: git show --name-status --exit-code --oneline --diff-filter=A | grep changelogs/fragments/ This succeeds if, and only if, a changelog fragment has been added (not modified) in the last commit (not the previous ones). That means that the last commit MUST contain the add of the changelog fragment. I squashed all commits of the PR and force-pushed to make the changelog fragment added in the last commit, and Is it the expected behavior ? |
@justjais ^^ |
Yes, each PR needs a changelog fragment. However, the way that github PRs work, you can push up a new commit in your PR (with that changelog) and the check system will pass. Or you can squash as you did for a single commit. |
@pabelanger why not, but the error message says:
I'm just clever enough to understand that something else than the changelog fragment is missing, because I know there is a changelog fragment. The message didn't help me. I find it confusing when, say, a contributor applies changes suggested by a reviewer, and then what was a successful check suddenly fails over and over. Only the read of the source code and testing my first hypothesis after reading the git-show's manual page lead me to a solution to make the check succeeds. If the message says the PR is missing a changelog fragment and the PR contains a changelog fragment, my obvious conclusion is that the message is wrong. And if the current behavior is the expected one, as you explained me, I think the message is definitively wrong.
or something else would be of better help :) thanks |
cc @Akasurde |
@quidame Thanks for the contribution. @Andersson007 Thanks for the review. |
@quidame @Akasurde @pabelanger thanks! |
SUMMARY
Ansible sanity test
validate-modules
triggers false-positives and hintsno-log-needed
errors for module parameters containing eitherkey
orpass
in their names, as in:This PR bypasses these errors by explicitly setting
no_log=False
in module's argument_spec.ISSUE TYPE
COMPONENT NAME
mount
authorized_key
ADDITIONAL INFORMATION
See also ansible-collections/community.network@af60326