Config generator doesn't support i18n messages

Bug #1408032 reported by Thomas Herve
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
oslo.config
Fix Released
Medium
Davanum Srinivas (DIMS)

Bug Description

When trying to generate configuration with i18n help messages, an error is raised: http://paste.openstack.org/show/155765/

Using string formatting instead of add seems to fix the problem.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.config (master)

Fix proposed to branch: master
Review: https://review.openstack.org/145280

Changed in oslo.config:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Changed in oslo.config:
milestone: none → kilo-next
importance: Undecided → Medium
Changed in oslo.config:
milestone: 1.6.1 → next-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.config (master)

Reviewed: https://review.openstack.org/145280
Committed: https://git.openstack.org/cgit/openstack/oslo.config/commit/?id=ea815b3304c8561d06c203381f07a8d954d353a5
Submitter: Jenkins
Branch: master

commit ea815b3304c8561d06c203381f07a8d954d353a5
Author: Davanum Srinivas <email address hidden>
Date: Tue Jan 6 12:33:42 2015 -0500

    Support i18n messages in config generator

    if opt.help is i18n'ed then we land up in trouble since
    Message objects do not support addition and a TypeError
    gets thrown. So we just use a better way to construct
    the string to avoid the TypeError.

    Closes-Bug: #1408032
    Change-Id: If1feb65c6467f1c8176369f49d128c172c569c66

Changed in oslo.config:
status: In Progress → Fix Committed
Changed in oslo.config:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.