Remove log translation function calls from ironic.db

Remove all calls to logging functions from the db directory of ironic.
In this instance, there were very few, and all were to _LW.

Change-Id: I474f2d51bf7cb9d6082d963de182d4a1fed142b3
Partial-bug: #1674374
This commit is contained in:
Adam Kimball 2017-03-21 16:42:37 -04:00
parent 26bba448a6
commit b6dcd7635d
1 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ from sqlalchemy.orm import joinedload
from sqlalchemy import sql
from ironic.common import exception
from ironic.common.i18n import _, _LW
from ironic.common.i18n import _
from ironic.common import states
from ironic.conf import CONF
from ironic.db import api
@ -783,8 +783,8 @@ class Connection(api.Connection):
if nodes:
nodes = ', '.join(nodes)
LOG.warning(
_LW('Cleared reservations held by %(hostname)s: '
'%(nodes)s'), {'hostname': hostname, 'nodes': nodes})
'Cleared reservations held by %(hostname)s: '
'%(nodes)s', {'hostname': hostname, 'nodes': nodes})
@oslo_db_api.retry_on_deadlock
def clear_node_target_power_state(self, hostname):
@ -802,9 +802,9 @@ class Connection(api.Connection):
if nodes:
nodes = ', '.join(nodes)
LOG.warning(
_LW('Cleared target_power_state of the locked nodes in '
'powering process, their power state can be incorrect: '
'%(nodes)s'), {'nodes': nodes})
'Cleared target_power_state of the locked nodes in '
'powering process, their power state can be incorrect: '
'%(nodes)s', {'nodes': nodes})
def get_active_driver_dict(self, interval=None):
query = model_query(models.Conductor)