Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Oct 30, 2024
1 parent 1958960 commit ff3f265
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/aws/fix_plugin_aws/resource/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from boto3.exceptions import Boto3Error

from fix_plugin_aws.resource.base import AwsResource, AwsApiSpec, GraphBuilder
from fix_plugin_aws.resource.ec2 import AwsEc2Instance
from fix_plugin_aws.resource.ecr import AwsEcrRepository
from fix_plugin_aws.resource.lambda_ import AwsLambdaFunction
from fixlib.baseresources import PhantomBaseResource, Severity, Finding
from fixlib.json_bender import Bender, S, ForallBend, Bend, F
from fixlib.types import Json
Expand Down Expand Up @@ -427,11 +430,6 @@ def collect_resources(cls, builder: GraphBuilder) -> None:
def check_type_and_adjust_id(
class_type: Optional[str], class_id: Optional[str]
) -> Tuple[Optional[Type[Any]], Optional[Dict[str, Any]]]:
# to avoid circular import, defined here
from fix_plugin_aws.resource.ec2 import AwsEc2Instance
from fix_plugin_aws.resource.ecr import AwsEcrRepository
from fix_plugin_aws.resource.lambda_ import AwsLambdaFunction

if not class_id or not class_type:
return None, None
match class_type:
Expand Down

0 comments on commit ff3f265

Please sign in to comment.