From: Wei Wang Date: Tue, 12 Aug 2014 14:59:18 +0000 (+0800) Subject: SecurityGroupRuleExists should point out rule id inseand of group id X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8fd377514026347e712bfa74faa351b580408e4e;p=openstack-build%2Fneutron-build.git SecurityGroupRuleExists should point out rule id inseand of group id 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 --- diff --git a/neutron/extensions/securitygroup.py b/neutron/extensions/securitygroup.py index 5ebb9de69..89b9d8a74 100644 --- a/neutron/extensions/securitygroup.py +++ b/neutron/extensions/securitygroup.py @@ -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):