Skip to content

Commit

Permalink
[Bugfix] add token to no_log_values to avoid exposing tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Trzebiatowski committed Sep 14, 2023
1 parent 884516c commit d3fca57
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 d3fca57

Please sign in to comment.