]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Added conversion specifier for proper log
authorMukul <mukul18@gmail.com>
Fri, 24 May 2013 18:02:12 +0000 (23:32 +0530)
committerMukul <mukul18@gmail.com>
Fri, 24 May 2013 20:18:17 +0000 (01:48 +0530)
In function create_for_sg_rule conversion specifier after string varaible
"rule_id" was missed. It was causing an error during translation of debug
message due to unavailability of conversion specifier. Included proper
conversion specifier for getting proper debug log.

Fixes: bug #1183734
Change-Id: I0342a091fb8199273c1bb9af59c42c0e09c39349

quantum/plugins/midonet/midonet_lib.py

index eeb74c8b891bd7c7858b7324d1c449d80dbec343..fbd7a6bdf0dc4e1de27754d1c65f911e91ff74f1 100644 (file)
@@ -276,7 +276,7 @@ class RuleManager:
         # create an accept rule
         properties = self._properties(rule_id)
         LOG.debug(_("RuleManager.create_for_sg_rule: adding accept rule "
-                    "%(rule_id) in portgroup %(port_group_id)s"),
+                    "%(rule_id)s in portgroup %(port_group_id)s"),
                   {'rule_id': rule_id, 'port_group_id': port_group_id})
         chain.add_rule().port_group(port_group_id).type('accept').nw_proto(
             nw_proto).nw_src_address(nw_src_address).nw_src_length(