Skip to content

Commit ecc64ca

Browse files
authored
helm_pull: Silence false no_log warning (#796)
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 <[email protected]> Reviewed-by: Irum Malik
1 parent bc0de24 commit ecc64ca

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- helm_pull - Apply no_log=True to pass_credentials to silence false positive warning.. (https://github.com/ansible-collections/kubernetes.core/pull/796).

plugins/modules/helm_pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def main():
189189
repo_password=dict(
190190
type="str", no_log=True, aliases=["password", "chart_repo_password"]
191191
),
192-
pass_credentials=dict(type="bool", default=False),
192+
pass_credentials=dict(type="bool", default=False, no_log=False),
193193
skip_tls_certs_check=dict(type="bool", default=False),
194194
chart_devel=dict(type="bool"),
195195
untar_chart=dict(type="bool", default=False),

tests/integration/targets/helm_pull/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
- '"--username ansible" in _result.command'
181181
- '"--password ***" in _result.command'
182182
- '"--keyring pubring.gpg" in _result.command'
183+
- '"Module did not set no_log for pass_credentials" not in _result.stderr'
183184

184185
- name: Download chart using chart_ref
185186
helm_pull:

0 commit comments

Comments
 (0)