← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1175165] Re: Lazy translation object in error message (default role doesn't exist)

 

** Changed in: horizon/grizzly
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1175165

Title:
  Lazy translation object in error message (default role doesn't exist)

Status in OpenStack Dashboard (Horizon):
  Fix Committed
Status in OpenStack Dashboard (Horizon) grizzly series:
  Fix Released

Bug description:
  If I have a default role that doesn't exist in the local_settings.py
  then try to edit a project, the error message in the logs look like
  this:

  NotFound: <django.utils.functional.__proxy__ object at 0x7fcee4175190>

  
  The fix for bug 1108063 contained a flaw in the translatable error message which wasn't surfaced until commit d107e4d9b5 (enabling lazy translations) was merged.

  "msg = _('Could not find default role "%s" in Keystone' % default)"
  should instead look like "msg = _('Could not find default role "%s" in
  Keystone') % default"

  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/projects/workflows.py#L128

  
  To reproduce, see steps in bug 1108063.

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