Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-rahulshetty authored and jhutar committed Oct 15, 2024
1 parent 111ba7f commit 7d7c71b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/opl/cluster_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def execute(command):

def redact_sensitive_headers(data: dict):
# Lower-case list of sensitive data in header
sensitive_headers = ['authorization', 'set-cookie', 'x-api-key', 'cookie']
sensitive_headers = ["authorization", "set-cookie", "x-api-key", "cookie"]

redacted_headers = {}
for header, value in data.items():
if header.lower() in sensitive_headers:
redacted_headers[header] = '<REDACTED>'
redacted_headers[header] = "<REDACTED>"
else:
redacted_headers[header] = value
return redacted_headers
Expand Down
4 changes: 2 additions & 2 deletions opl/cluster_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def execute(command):

def redact_sensitive_headers(data: dict):
# Lower-case list of sensitive data in header
sensitive_headers = ['authorization', 'set-cookie', 'x-api-key', 'cookie']
sensitive_headers = ["authorization", "set-cookie", "x-api-key", "cookie"]

redacted_headers = {}
for header, value in data.items():
if header.lower() in sensitive_headers:
redacted_headers[header] = '<REDACTED>'
redacted_headers[header] = "<REDACTED>"
else:
redacted_headers[header] = value
return redacted_headers
Expand Down

0 comments on commit 7d7c71b

Please sign in to comment.