Merge "Fix typo error for wrong msg format when CallbackFailure"

This commit is contained in:
Jenkins 2016-03-01 12:45:05 +00:00 committed by Gerrit Code Review
commit 91db9444b0
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ class SecurityGroupDbMixin(ext_sg.SecurityGroupPluginBase):
registry.notify(res, event, self, **kwargs)
except exceptions.CallbackFailure as e:
if exc_cls:
reason = _('cannot perform %(event)s due to %(reason)s'), {
'event': event, 'reason': e}
reason = (_('cannot perform %(event)s due to %(reason)s') %
{'event': event, 'reason': e})
raise exc_cls(reason=reason, id=id)
def create_security_group(self, context, security_group, default_sg=False):