summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/agent.py
diff options
context:
space:
mode:
authorAnup Navare <anup.d.navare@intel.com>2017-03-26 19:01:10 +0000
committerAnup Navare <anup.d.navare@intel.com>2017-05-09 17:15:38 +0000
commit4c82308ebed809352674959a3892f8b3bac01d1b (patch)
treedfc32ca0afedc65b39cc290c2ff12df13f1c8708 /ironic/drivers/modules/agent.py
parent6f237ecfd9db4eefc5a328de6135a8224f682b79 (diff)
downloadironic-4c82308ebed809352674959a3892f8b3bac01d1b.tar.gz
Remove log translations from ironic/drivers Part-1
Log messages are no longer being translated. This removes the use of _LE, _LI and _LW translation markers from ironic/drivers. Change-Id: Ie01c1a6a0e0232dce055767854a5d4385b392510 Partial-Bug: #1674374
Diffstat (limited to 'ironic/drivers/modules/agent.py')
-rw-r--r--ironic/drivers/modules/agent.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/drivers/modules/agent.py b/ironic/drivers/modules/agent.py
index e07753fef..3356cb859 100644
--- a/ironic/drivers/modules/agent.py
+++ b/ironic/drivers/modules/agent.py
@@ -21,7 +21,7 @@ import six.moves.urllib_parse as urlparse
from ironic.common import dhcp_factory
from ironic.common import exception
from ironic.common.glance_service import service_utils
-from ironic.common.i18n import _, _LI, _LW
+from ironic.common.i18n import _
from ironic.common import images
from ironic.common import raid
from ironic.common import states
@@ -81,8 +81,8 @@ def check_image_size(task, image_source):
properties = node.properties
# skip check if 'memory_mb' is not defined
if 'memory_mb' not in properties:
- LOG.warning(_LW('Skip the image size check as memory_mb is not '
- 'defined in properties on node %s.'), node.uuid)
+ LOG.warning('Skip the image size check as memory_mb is not '
+ 'defined in properties on node %s.', node.uuid)
return
image_show = images.image_show(task.context, image_source)
@@ -285,7 +285,7 @@ class AgentDeployMixin(agent_base_vendor.AgentDeployMixin):
task.node.driver_internal_info = driver_internal_info
task.node.save()
self.prepare_instance_to_boot(task, root_uuid, efi_sys_uuid)
- LOG.info(_LI('Image successfully written to node %s'), node.uuid)
+ LOG.info('Image successfully written to node %s', node.uuid)
LOG.debug('Rebooting node %s to instance', node.uuid)
if iwdi:
manager_utils.node_set_boot_device(task, 'disk', persistent=True)