Skip to content

Commit

Permalink
[connection plugin] add missing information from censored command (#196)
Browse files Browse the repository at this point in the history
[connection plugin] add missing information from censored command

SUMMARY
when running playbook with vvv option, the censored command display is not reflecting the execution
ISSUE TYPE


Bugfix Pull Request

Reviewed-by: Mike Graves <[email protected]>
Reviewed-by: None <None>
  • Loading branch information
abikouo authored Aug 4, 2021
1 parent 2559080 commit 76a77af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/196_kubectl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- connection plugin - add arguments information into censored command (https://github.com/ansible-collections/kubernetes.core/pull/196).
2 changes: 2 additions & 0 deletions plugins/connection/kubectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def _build_exec_cmd(self, cmd):
# Redact password and token from console log
if key.endswith(('_token', '_password')):
censored_local_cmd += [cmd_arg, '********']
else:
censored_local_cmd += [cmd_arg, self.get_option(key)]

extra_args_name = u'{0}_extra_args'.format(self.transport)
if self.get_option(extra_args_name):
Expand Down

0 comments on commit 76a77af

Please sign in to comment.