From 7d7c71bdca5ba8abd2b05fa1b19635310bf5ba59 Mon Sep 17 00:00:00 2001 From: Rahul Shetty Date: Thu, 10 Oct 2024 17:25:42 +0530 Subject: [PATCH] fix lint --- core/opl/cluster_read.py | 4 ++-- opl/cluster_read.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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