From 08821741267680c3c2686281c5e6c6aaf7c82095 Mon Sep 17 00:00:00 2001 From: Yann Lambret Date: Tue, 19 Apr 2016 23:50:12 +0200 Subject: [PATCH] Replace exception message by the one sent by boto, because it is used for bot ingress and egress rules --- moto/ec2/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/ec2/exceptions.py b/moto/ec2/exceptions.py index 9e8f93004..1bba89fd5 100644 --- a/moto/ec2/exceptions.py +++ b/moto/ec2/exceptions.py @@ -136,7 +136,7 @@ class InvalidPermissionNotFoundError(EC2ClientError): def __init__(self): super(InvalidPermissionNotFoundError, self).__init__( "InvalidPermission.NotFound", - "Could not find a matching ingress rule") + "The specified rule does not exist in this security group") class InvalidRouteTableIdError(EC2ClientError):