From 8fd377514026347e712bfa74faa351b580408e4e Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Tue, 12 Aug 2014 22:59:18 +0800 Subject: [PATCH] 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 --- neutron/extensions/securitygroup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/extensions/securitygroup.py b/neutron/extensions/securitygroup.py index 5ebb9de6914..89b9d8a74bb 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):