]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
SecurityGroupRuleExists should point out rule id inseand of group id
authorWei Wang <wangwei@unitedstack.com>
Tue, 12 Aug 2014 14:59:18 +0000 (22:59 +0800)
committerWei Wang <wangwei@unitedstack.com>
Tue, 12 Aug 2014 16:17:25 +0000 (00:17 +0800)
When we get a SecurityGroupRuleExists, we want to get the rule id
instaed of group id, and this is what the fucntion
_check_for_duplicate_rules() does.

Change-Id: I9b526d9829582cb26bfda98bcaf1704fe8681cbe
Closes-bug:  #1354343

neutron/extensions/securitygroup.py

index 5ebb9de6914593ff10b1655cd7530e0d510b2bdc..89b9d8a74bb4fb6e1b8f092f32bc0ceea4c35e61 100644 (file)
@@ -103,7 +103,7 @@ class DuplicateSecurityGroupRuleInPost(qexception.InUse):
 
 
 class SecurityGroupRuleExists(qexception.InUse):
-    message = _("Security group rule already exists. Group id is %(id)s.")
+    message = _("Security group rule already exists. Rule id is %(id)s.")
 
 
 class SecurityGroupRuleParameterConflict(qexception.InvalidInput):