Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
  • Loading branch information
alinabuzachis committed Sep 30, 2024
1 parent 3565890 commit 8899f4c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/module_utils/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,14 @@ class EC2VpcPeeringErrorHandler(AWSErrorHandler):

@classmethod
def _is_missing(cls):
return is_boto3_error_code("InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.Malformed")
return is_boto3_error_code("InvalidVpcPeeringConnectionID.NotFound")


@EC2VpcPeeringErrorHandler.list_error_handler("describe vpc peering", [])
@AWSRetry.jittered_backoff()
def describe_vpc_peering_connections(client, **params: Dict[str, Any]) -> List[Dict[str, Any]]:
result = client.describe_vpc_peering_connections(
**params,
)
return result
paginator = client.get_paginator("describe_vpc_peering_connections")
return paginator.paginate(**params).build_full_result()["VpcPeeringConnections"]


@EC2VpcSubnetErrorHandler.common_error_handler("create vpc peering")
Expand Down

0 comments on commit 8899f4c

Please sign in to comment.