Adding missing log translation hints
TrivialFix Change-Id: I47fd2d56aa7260d0048d8779f3a7e7f680c36a06
This commit is contained in:
parent
41616f9d55
commit
d58d786937
@ -4235,8 +4235,8 @@ class SecurityGroupAPI(base.Base, security_group_base.SecurityGroupBase):
|
||||
msg = _("Quota exceeded, too many security group rules.")
|
||||
self.raise_over_quota(msg)
|
||||
|
||||
msg = _("Security group %(name)s added %(protocol)s ingress "
|
||||
"(%(from_port)s:%(to_port)s)")
|
||||
msg = _LI("Security group %(name)s added %(protocol)s ingress "
|
||||
"(%(from_port)s:%(to_port)s)")
|
||||
rules = []
|
||||
for v in vals:
|
||||
rule = self.db.security_group_rule_create(context, v)
|
||||
@ -4250,8 +4250,8 @@ class SecurityGroupAPI(base.Base, security_group_base.SecurityGroupBase):
|
||||
return rules
|
||||
|
||||
def remove_rules(self, context, security_group, rule_ids):
|
||||
msg = _("Security group %(name)s removed %(protocol)s ingress "
|
||||
"(%(from_port)s:%(to_port)s)")
|
||||
msg = _LI("Security group %(name)s removed %(protocol)s ingress "
|
||||
"(%(from_port)s:%(to_port)s)")
|
||||
for rule_id in rule_ids:
|
||||
rule = self.get_rule(context, rule_id)
|
||||
LOG.info(msg, {'name': security_group['name'],
|
||||
|
@ -97,8 +97,7 @@ class FileTransfer(xfer_base.TransferBase):
|
||||
module=str(self), reason=msg)
|
||||
id = metadata['id']
|
||||
if id not in self.filesystems:
|
||||
msg = _('The ID %(id)s is unknown.') % {'id': id}
|
||||
LOG.info(msg)
|
||||
LOG.info(_LI('The ID %(id)s is unknown.'), {'id': id})
|
||||
return
|
||||
fs_descriptor = self.filesystems[id]
|
||||
return fs_descriptor
|
||||
|
Loading…
x
Reference in New Issue
Block a user