Merge "Remove log translations"

This commit is contained in:
Jenkins 2017-04-01 04:46:42 +00:00 committed by Gerrit Code Review
commit 1254cb9460
3 changed files with 4 additions and 16 deletions

View File

@ -27,7 +27,6 @@ import six
from six.moves import urllib
from muranoclient.common import exceptions as exc
from muranoclient.i18n import _LW
LOG = logging.getLogger(__name__)
USER_AGENT = 'python-muranoclient'
@ -49,7 +48,7 @@ def get_system_ca_file():
if os.path.exists(ca):
LOG.debug("Using ca file %s", ca)
return ca
LOG.warning(_LW("System ca file could not be found."))
LOG.warning("System ca file could not be found.")
class HTTPClient(object):
@ -371,5 +370,5 @@ def _set_data(kwargs):
if 'data' in kwargs:
raise ValueError("Can't provide both 'data' and "
"'body' to a request")
LOG.warning(_LW("Use of 'body' is deprecated; use 'data' instead"))
LOG.warning("Use of 'body' is deprecated; use 'data' instead")
kwargs['data'] = kwargs.pop('body')

View File

@ -43,7 +43,6 @@ import yaql
from muranoclient.common import exceptions
from muranoclient.i18n import _
from muranoclient.i18n import _LW
try:
import yaql.language # noqa
@ -586,8 +585,8 @@ def ensure_images(glance_client, image_specs, base_url,
def _image_valid(image, keys):
for key in keys:
if key not in image:
LOG.warning(_LW("Image specification invalid: "
"No {0} key in image ").format(key))
LOG.warning("Image specification invalid: "
"No {0} key in image ").format(key)
return False
return True

View File

@ -22,13 +22,3 @@ _translators = oslo_i18n.TranslatorFactory(domain='muranoclient')
# The primary translation function using the well-known name "_"
_ = _translators.primary
# Translators for log levels.
#
# The abbreviated names are meant to reflect the usual use of a short
# name like '_'. The "L" is for "log" and the other letter comes from
# the level.
_LI = _translators.log_info
_LW = _translators.log_warning
_LE = _translators.log_error
_LC = _translators.log_critical