diff --git a/core/opl/cluster_read.py b/core/opl/cluster_read.py index b89e57b..203df7f 100755 --- a/core/opl/cluster_read.py +++ b/core/opl/cluster_read.py @@ -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_headers[header] = "" else: redacted_headers[header] = value return redacted_headers diff --git a/opl/cluster_read.py b/opl/cluster_read.py index b89e57b..203df7f 100755 --- a/opl/cluster_read.py +++ b/opl/cluster_read.py @@ -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_headers[header] = "" else: redacted_headers[header] = value return redacted_headers