Verify security group parameters
Introduced various sanity checks before adding security group rule into the database. The checks have been implemented both in EC2 and openstack extension code. Implemented the suggestions made in first patch by Brian Fixed the unit tests in security groups Fixed pep8 issues in security group unit tests Fixes bug 869979. Change-Id: I2ac28666e90e7bdeacb7b1c2676c0719cfb9e441
This commit is contained in:
@@ -229,7 +229,7 @@ class InvalidVolumeType(Invalid):
|
||||
|
||||
|
||||
class InvalidPortRange(Invalid):
|
||||
message = _("Invalid port range %(from_port)s:%(to_port)s.")
|
||||
message = _("Invalid port range %(from_port)s:%(to_port)s. %(msg)s")
|
||||
|
||||
|
||||
class InvalidIpProtocol(Invalid):
|
||||
|
||||
Reference in New Issue
Block a user