Merge "Handle log message interpolation by the logger"
This commit is contained in:
commit
196474f6f3
@ -215,8 +215,8 @@ class DeleteFirewallGroup(command.Command):
|
||||
except Exception as e:
|
||||
result += 1
|
||||
LOG.error(_("Failed to delete firewall group with "
|
||||
"name or ID '%(firewall_group)s': %(e)s") % {
|
||||
const.FWG: fwg, 'e': e})
|
||||
"name or ID '%(firewall_group)s': %(e)s"),
|
||||
{const.FWG: fwg, 'e': e})
|
||||
|
||||
if result > 0:
|
||||
total = len(parsed_args.firewall_group)
|
||||
|
@ -170,8 +170,8 @@ class DeleteFirewallPolicy(command.Command):
|
||||
except Exception as e:
|
||||
result += 1
|
||||
LOG.error(_("Failed to delete Firewall policy with "
|
||||
"name or ID '%(firewall_policy)s': %(e)s") % {
|
||||
const.FWP: fwp, 'e': e})
|
||||
"name or ID '%(firewall_policy)s': %(e)s"),
|
||||
{const.FWP: fwp, 'e': e})
|
||||
|
||||
if result > 0:
|
||||
total = len(parsed_args.firewall_policy)
|
||||
|
@ -229,8 +229,8 @@ class DeleteFirewallRule(command.Command):
|
||||
except Exception as e:
|
||||
result += 1
|
||||
LOG.error(_("Failed to delete Firewall rule with "
|
||||
"name or ID '%(firewall_rule)s': %(e)s") % {
|
||||
const.FWR: fwr, 'e': e})
|
||||
"name or ID '%(firewall_rule)s': %(e)s"),
|
||||
{const.FWR: fwr, 'e': e})
|
||||
|
||||
if result > 0:
|
||||
total = len(parsed_args.firewall_rule)
|
||||
|
@ -112,8 +112,8 @@ class DeleteNetworkTrunk(command.Command):
|
||||
except Exception as e:
|
||||
result += 1
|
||||
LOG.error(_("Failed to delete trunk with name "
|
||||
"or ID '%(trunk)s': %(e)s")
|
||||
% {'trunk': trunk, 'e': e})
|
||||
"or ID '%(trunk)s': %(e)s"),
|
||||
{'trunk': trunk, 'e': e})
|
||||
if result > 0:
|
||||
total = len(parsed_args.trunk)
|
||||
msg = (_("%(result)s of %(total)s trunks failed "
|
||||
|
Loading…
Reference in New Issue
Block a user