test ip_ranges when authorizing security group ingress rules

This commit is contained in:
Joseph Lawson 2014-10-06 14:42:12 -04:00
commit b9f747fb4f
4 changed files with 33 additions and 4 deletions

View file

@ -284,6 +284,14 @@ class InvalidID(EC2ClientError):
.format(resource_id))
class InvalidCIDRSubnetError(EC2ClientError):
def __init__(self, cidr):
super(InvalidCIDRSubnetError, self).__init__(
"InvalidParameterValue",
"invalid CIDR subnet specification: {0}"
.format(cidr))
ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Errors>