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
changes/77/30477/4
Mukul 10 years ago
parent a87e51cebb
commit 1c1ef911c1
  1. 2
      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(

Loading…
Cancel
Save