Skip to content

Commit

Permalink
Merge pull request #31 from KohlsTechnology/fix-token-expose
Browse files Browse the repository at this point in the history
add ocp tokens to no_log_values
  • Loading branch information
vinny-sabatini authored Sep 14, 2023
2 parents 884516c + d3fca57 commit bc69137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/openshift_provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,9 @@ def __init__(self, module):
self.oc_cmd += ['--insecure-skip-tls-verify']
elif connection['insecure_skip_tls_verify']:
self.oc_cmd += ['--insecure-skip-tls-verify='+connection['insecure_skip_tls_verify']]
for arg in self.oc_cmd:
if arg.startswith('--token='):
module.no_log_values.add(arg[8:])

def run_oc(self, args, **kwargs):
if self.module._verbosity < 3:
Expand Down

0 comments on commit bc69137

Please sign in to comment.