Skip to content

Commit

Permalink
helm_pull: Silence false no_log warning (#796)
Browse files Browse the repository at this point in the history
SUMMARY
Apply no_log=True to pass_credentials to silence false positive warning.
Fixes similar issue to: #423
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
changelog/fragements/796-false-positive-helmull.yaml
plugins/modules/helm_pull.py

Reviewed-by: Yuriy Novostavskiy
Reviewed-by: Mike Graves <mgraves@redhat.com>
Reviewed-by: Irum Malik
(cherry picked from commit ecc64ca)
  • Loading branch information
colshine1 authored and patchback[bot] committed Jan 17, 2025
1 parent d3f6dd1 commit 3040b55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/796-false-positive-helmull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning.. (https://github.com/ansible-collections/kubernetes.core/pull/796).
2 changes: 1 addition & 1 deletion plugins/modules/helm_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def main():
repo_password=dict(
type="str", no_log=True, aliases=["password", "chart_repo_password"]
),
pass_credentials=dict(type="bool", default=False),
pass_credentials=dict(type="bool", default=False, no_log=False),
skip_tls_certs_check=dict(type="bool", default=False),
chart_devel=dict(type="bool"),
untar_chart=dict(type="bool", default=False),
Expand Down
1 change: 1 addition & 0 deletions tests/integration/targets/helm_pull/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
- '"--username ansible" in _result.command'
- '"--password ***" in _result.command'
- '"--keyring pubring.gpg" in _result.command'
- '"Module did not set no_log for pass_credentials" not in _result.stderr'

- name: Download chart using chart_ref
helm_pull:
Expand Down

0 comments on commit 3040b55

Please sign in to comment.