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/118587 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=4676a47697f b419aacd8248c66 2556e6952935d6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4676a47697fb419 aacd8248c662556 e6952935d6
Author: Vladyslav Drok <email address hidden>
Date: Wed Sep 3 11:42:53 2014 +0300
Translator functions cleanup part 2
This part fixes ironic/drivers folder.
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: I77cf2582d2e917 3d57da473cba118 fd8b48a8735