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

[Scaleway] Remove unused sensitive values filtering #5497

Merged

Conversation

Lunik
Copy link
Contributor

@Lunik Lunik commented Nov 7, 2022

SUMMARY

This PR remove the call to filter_sensitive_attributes in Scaleway modules.
Also remove the filter_sensitive_attributes from module utils.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • scaleway_container_namespace_info
  • scaleway_container_registry_info
  • scaleway_function_info
ADDITIONAL INFORMATION

Since the returned values are hashed, we don't need to filter them from before return the to the user.
Also, the not _info modules already returns the hashed value.

Should I make a Changelog fragment for this PR ?

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug cloud module module module_utils module_utils plugins plugin (any type) needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Nov 7, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Signed-off-by: Lunik <lunik@tiwabbit.fr>
@Lunik Lunik force-pushed the scaleway-fix-sensitive-values branch from e1adfbb to 1bbe2d0 Compare November 7, 2022 18:34
Maybe that works aound the bug in pylint. (Also it won't be a breaking change anymore.)
@felixfontein
Copy link
Collaborator

Sorry for removing that change, but it seems to trigger a pylint bug in very certain circumstances (which seem to be fulfilled in CI, but not when I test locally). I'll try to re-do that in a follow-up commit, or at least rename the function with a leading underscore so that it is marked private (and we can remove it later without it being a breaking change).

@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Nov 7, 2022
felixfontein added a commit to felixfontein/community.general that referenced this pull request Nov 7, 2022
@felixfontein felixfontein merged commit bc7e7f8 into ansible-collections:main Nov 7, 2022
felixfontein added a commit to felixfontein/community.general that referenced this pull request Nov 7, 2022
@felixfontein
Copy link
Collaborator

@Lunik thanks for your contribution! I've created a follow-up PR in #5499.

@Lunik Lunik deleted the scaleway-fix-sensitive-values branch November 7, 2022 20:25
felixfontein added a commit that referenced this pull request Nov 7, 2022
russoz pushed a commit to russoz-ansible/community.general that referenced this pull request Nov 10, 2022
…ons#5497)

* [Scaleway] Remove unused sensitive values filtering

Signed-off-by: Lunik <lunik@tiwabbit.fr>

* Try adding function back.

Maybe that works aound the bug in pylint. (Also it won't be a breaking change anymore.)

Signed-off-by: Lunik <lunik@tiwabbit.fr>
Co-authored-by: Felix Fontein <felix@fontein.de>
felixfontein added a commit to felixfontein/community.general that referenced this pull request Jan 18, 2023
felixfontein added a commit that referenced this pull request Jan 18, 2023
…5499)

* Make function private that should be removed (ref: #5497).

* Maybe it works as a comment?

* Try something else.

* Ok, let's just add a comment.

* Last try: docstring instead of comment.
patchback bot pushed a commit that referenced this pull request Jan 18, 2023
…5499)

* Make function private that should be removed (ref: #5497).

* Maybe it works as a comment?

* Try something else.

* Ok, let's just add a comment.

* Last try: docstring instead of comment.

(cherry picked from commit c4b1836)
felixfontein added a commit that referenced this pull request Jan 18, 2023
…nction private that should be removed (#5860)

scaleway module utils: make function private that should be removed (#5499)

* Make function private that should be removed (ref: #5497).

* Maybe it works as a comment?

* Try something else.

* Ok, let's just add a comment.

* Last try: docstring instead of comment.

(cherry picked from commit c4b1836)

Co-authored-by: Felix Fontein <felix@fontein.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug cloud module_utils module_utils module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants