mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 14:02:38 +00:00
[connection plugin] add missing information from censored command (#196)
[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 <mgraves@redhat.com> Reviewed-by: None <None>
This commit is contained in:
3
changelogs/fragments/196_kubectl.yaml
Normal file
3
changelogs/fragments/196_kubectl.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- connection plugin - add arguments information into censored command (https://github.com/ansible-collections/kubernetes.core/pull/196).
|
||||||
@@ -245,6 +245,8 @@ class Connection(ConnectionBase):
|
|||||||
# Redact password and token from console log
|
# Redact password and token from console log
|
||||||
if key.endswith(('_token', '_password')):
|
if key.endswith(('_token', '_password')):
|
||||||
censored_local_cmd += [cmd_arg, '********']
|
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)
|
extra_args_name = u'{0}_extra_args'.format(self.transport)
|
||||||
if self.get_option(extra_args_name):
|
if self.get_option(extra_args_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user