This part fixes ironic/conductor, ironic/dhcp and ironic/objects
folders.
Some modules use _ function for log translation, even when the
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.openstack.common.gettextutils are now imported from
ironic.common.i18n. Translator functions are imported the same way
across all modules. All places that are changed conform to http://docs.openstack.org/developer/oslo.i18n/guidelines.html
Reviewed: https:/ /review. openstack. org/118588 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=7a354626611 77cc0231619bcde 14c5c04a3873f2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a35462661177cc 0231619bcde14c5 c04a3873f2
Author: Vladyslav Drok <email address hidden>
Date: Wed Sep 3 12:26:15 2014 +0300
Translator functions cleanup part 3
This part fixes ironic/conductor, ironic/dhcp and ironic/objects
folders.
Some modules use _ function for log translation, even when the openstack. common. gettextutils are now imported from common. i18n. Translator functions are imported the same way docs.openstack. org/developer/ oslo.i18n/ guidelines. html
translated string is passed to e.g. LOG.warn function. This patch
fixes it, using translator functions appropriate for corresponding
log levels. Translator functions, imported from
ironic.
ironic.
across all modules. All places that are changed conform to
http://
Partial-bug: #1364813
Change-Id: Ib4b93cc49f1683 6a95c7cfb4c5f17 05f5cbbb31f