From: Mukul Date: Fri, 24 May 2013 18:02:12 +0000 (+0530) Subject: Added conversion specifier for proper log X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1c1ef911c13be19c33e3de662618a8eccd61af86;p=openstack-build%2Fneutron-build.git Added conversion specifier for proper log 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 --- diff --git a/quantum/plugins/midonet/midonet_lib.py b/quantum/plugins/midonet/midonet_lib.py index eeb74c8b8..fbd7a6bdf 100644 --- a/quantum/plugins/midonet/midonet_lib.py +++ b/quantum/plugins/midonet/midonet_lib.py @@ -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(