summaryrefslogtreecommitdiff
path: root/ironic/conductor/task_manager.py
diff options
context:
space:
mode:
authorRamamani Yeleswarapu <ramamani.yeleswarapu@intel.com>2017-03-20 16:29:03 -0700
committerRamamani Yeleswarapu <ramamani.yeleswarapu@intel.com>2017-03-22 16:39:20 -0700
commitd82fb9a9a2817ef5b7a6c91115e2b2bf5cfebebc (patch)
treef316ed47dd9db1c4614ce06458bb43807a31af0a /ironic/conductor/task_manager.py
parent612e2051eda12b51562428a605c0f851ac778424 (diff)
downloadironic-d82fb9a9a2817ef5b7a6c91115e2b2bf5cfebebc.tar.gz
Remove translation of log messages from ironic/conductor
The i18n team has decided not to translate the logs because it seems like it's not very useful. This patch removes translation of log messages from ironic/conductor. Change-Id: I0fabef88f2d1bc588150f02cac0f5e975965fc29 Partial-Bug: #1674374
Diffstat (limited to 'ironic/conductor/task_manager.py')
-rw-r--r--ironic/conductor/task_manager.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/ironic/conductor/task_manager.py b/ironic/conductor/task_manager.py
index 60b119e7f..c3581c794 100644
--- a/ironic/conductor/task_manager.py
+++ b/ironic/conductor/task_manager.py
@@ -110,7 +110,7 @@ import six
from ironic.common import driver_factory
from ironic.common import exception
-from ironic.common.i18n import _, _LE, _LI, _LW
+from ironic.common.i18n import _
from ironic.common import states
from ironic.conductor import notification_utils as notify
from ironic import objects
@@ -365,9 +365,9 @@ class TaskManager(object):
try:
exc = future.exception()
except futurist.CancelledError:
- LOG.exception(_LE("Execution of %(method)s for node %(node)s "
- "was canceled."), {'method': method,
- 'node': node.uuid})
+ LOG.exception("Execution of %(method)s for node %(node)s "
+ "was canceled.", {'method': method,
+ 'node': node.uuid})
else:
if exc is not None:
msg = _("Async execution of %(method)s failed with error: "
@@ -480,9 +480,9 @@ class TaskManager(object):
# publish the state transition by saving the Node
self.node.save()
- LOG.info(_LI('Node %(node)s moved to provision state "%(state)s" from '
- 'state "%(previous)s"; target provision state is '
- '"%(target)s"'),
+ LOG.info('Node %(node)s moved to provision state "%(state)s" from '
+ 'state "%(previous)s"; target provision state is '
+ '"%(target)s"',
{'node': self.node.uuid, 'state': self.node.provision_state,
'target': self.node.target_provision_state,
'previous': self._prev_provision_state})
@@ -536,10 +536,10 @@ class TaskManager(object):
self._on_error_method(e, *self._on_error_args,
**self._on_error_kwargs)
except Exception:
- LOG.warning(_LW("Task's on_error hook failed to "
- "call %(method)s on node %(node)s"),
+ LOG.warning("Task's on_error hook failed to "
+ "call %(method)s on node %(node)s",
{'method': self._on_error_method.__name__,
- 'node': self.node.uuid})
+ 'node': self.node.uuid})
if fut is not None:
# This means the add_done_callback() failed for some