Skip to content

Commit

Permalink
applied pylint hint
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Oct 30, 2024
1 parent 07ba4bb commit 2625f11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/aws/fix_plugin_aws/resource/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def check_type_and_adjust_id(
case "AWS_LAMBDA_FUNCTION":
# remove lambda's version from arn
lambda_arn = resource_id.rsplit(":", 1)[0]
return AwsLambdaFunction, dict(arn=lambda_arn)
return AwsLambdaFunction, {"arn": lambda_arn}
case "AWS_EC2_INSTANCE":
return AwsEc2Instance, dict(id=resource_id)
return AwsEc2Instance, {"id": resource_id}
case "AWS_ECR_REPOSITORY":
return AwsEcrRepository, dict(id=resource_id, _region=builder.region)
return AwsEcrRepository, {"id": resource_id, "_region": builder.region}
case _:
return None, None

Expand Down

0 comments on commit 2625f11

Please sign in to comment.