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
This commit is contained in:
Mukul 2013-05-24 23:32:12 +05:30
parent a87e51cebb
commit 1c1ef911c1
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class RuleManager:
# create an accept rule # create an accept rule
properties = self._properties(rule_id) properties = self._properties(rule_id)
LOG.debug(_("RuleManager.create_for_sg_rule: adding accept rule " 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}) {'rule_id': rule_id, 'port_group_id': port_group_id})
chain.add_rule().port_group(port_group_id).type('accept').nw_proto( chain.add_rule().port_group(port_group_id).type('accept').nw_proto(
nw_proto).nw_src_address(nw_src_address).nw_src_length( nw_proto).nw_src_address(nw_src_address).nw_src_length(