cleanup openstack-common.conf and sync updated files

periodic updates of latest from oslo-incubator. please
note that files no longer on oslo-incubator mean that
they have been moved to oslo.* libraries. So there's
more work needed to remove these files and switch
to appropriate libraries

Change-Id: Icd71b4b1ea9f1df526614a29277f25a7ab47b721
This commit is contained in:
Davanum Srinivas 2015-06-07 10:11:48 -04:00 committed by Davanum Srinivas (dims)
parent dfa98ab04c
commit 5e85d61fb9
4 changed files with 4 additions and 5 deletions

View File

@ -17,14 +17,14 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
"""
try:
import oslo.i18n
import oslo_i18n
# NOTE(dhellmann): This reference to o-s-l-o will be replaced by the
# application name when this module is synced into the separate
# repository. It is OK to have more than one translation function
# using the same domain, since there will still only be one message
# catalog.
_translators = oslo.i18n.TranslatorFactory(domain='glanceclient')
_translators = oslo_i18n.TranslatorFactory(domain='glanceclient')
# The primary translation function using the well-known name "_"
_ = _translators.primary

View File

@ -402,7 +402,7 @@ class CrudManager(BaseManager):
'name': self.resource_class.__name__,
'args': kwargs
}
raise exceptions.NotFound(404, msg)
raise exceptions.NotFound(msg)
elif num > 1:
raise exceptions.NoUniqueMatch
else:

View File

@ -465,7 +465,7 @@ def from_response(response, method, url):
kwargs["details"] = (error.get("details") or
six.text_type(body))
elif content_type.startswith("text/"):
kwargs["details"] = response.text
kwargs["details"] = getattr(response, 'text', '')
try:
cls = _code_map[response.status_code]

View File

@ -2,7 +2,6 @@
# The list of modules to copy from openstack-common
module=apiclient
module=gettextutils
# The base module to hold the copy of openstack.common
base=glanceclient