From c66d07f9495016d8bed827fe947edacd5973c761 Mon Sep 17 00:00:00 2001 From: Taylor Date: Thu, 2 Jan 2025 12:36:38 -0800 Subject: [PATCH] flake8 fixes --- .../checks/resource/aws/EMRClusterConfEncryptsEBS.py | 8 ++++---- .../checks/resource/aws/SecretManagerSecret90days.py | 2 +- .../aws/TransferServerAllowsOnlySecureProtocols.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/checkov/terraform/checks/resource/aws/EMRClusterConfEncryptsEBS.py b/checkov/terraform/checks/resource/aws/EMRClusterConfEncryptsEBS.py index 2ed29dc717f..1d650ca514d 100644 --- a/checkov/terraform/checks/resource/aws/EMRClusterConfEncryptsEBS.py +++ b/checkov/terraform/checks/resource/aws/EMRClusterConfEncryptsEBS.py @@ -32,10 +32,10 @@ def scan_resource_conf(self, conf: dict[str, list[Any]]) -> CheckResult: return CheckResult.UNKNOWN def get_evaluated_keys(self) -> List[str]: - return [ - "configuration", - "configuration/[0]/EncryptionConfiguration/AtRestEncryptionConfiguration/LocalDiskEncryptionConfiguration/EnableEbsEncryption" - ] + return [ + "configuration", + "configuration/[0]/EncryptionConfiguration/AtRestEncryptionConfiguration/LocalDiskEncryptionConfiguration/EnableEbsEncryption" + ] check = EMRClusterConfEncryptsEBS() diff --git a/checkov/terraform/checks/resource/aws/SecretManagerSecret90days.py b/checkov/terraform/checks/resource/aws/SecretManagerSecret90days.py index 43f1e32943a..db9e6014fc0 100644 --- a/checkov/terraform/checks/resource/aws/SecretManagerSecret90days.py +++ b/checkov/terraform/checks/resource/aws/SecretManagerSecret90days.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Any, List +from typing import Any from checkov.common.util.type_forcers import force_int from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck diff --git a/checkov/terraform/checks/resource/aws/TransferServerAllowsOnlySecureProtocols.py b/checkov/terraform/checks/resource/aws/TransferServerAllowsOnlySecureProtocols.py index 38c17ec89ac..7f853025cdc 100644 --- a/checkov/terraform/checks/resource/aws/TransferServerAllowsOnlySecureProtocols.py +++ b/checkov/terraform/checks/resource/aws/TransferServerAllowsOnlySecureProtocols.py @@ -21,8 +21,8 @@ def scan_resource_conf(self, conf): return CheckResult.FAILED return CheckResult.PASSED - def get_evaluated_keys(self) -> List[str]: return ["protocols"] + check = TransferServerAllowsOnlySecureProtocols()