← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1413905] Re: some exception messages of trust manager are not formatted

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1413905

Title:
  some exception messages of trust manager are not formatted

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  There are three unformatted exceptions in trust manager:
  https://github.com/openstack/keystone/blob/master/keystone/trust/core.py#L56
  https://github.com/openstack/keystone/blob/master/keystone/trust/core.py#L65
  https://github.com/openstack/keystone/blob/master/keystone/trust/core.py#L140

  The test code is as follow:
  >>> from keystone import exception
  >>> from keystone.i18n import _
  >>> from keystone import config
  >>> CONF = config.CONF
  >>> CONF.debug=True
  >>> raise exception.Forbidden(_('%(redelegation_depth)d  [0..%(max_count)d]'), redelegation_depth=1, max_count=2)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  keystone.exception.Forbidden: %(redelegation_depth)d  [0..%(max_count)d] (Disable debug mode to suppress these details.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1413905/+subscriptions


References