OpenStack Image Management (Glance)
Go to file
Victor Stinner 1c186e23fd Use oslo_utils.encodeutils.exception_to_unicode()
* Replace glance.common.utils.exception_to_str() with
  oslo_utils.encodeutils.exception_to_unicode().
* Remove exception_to_str() from glance.common.utils
* Add "from oslo_utils import encodeutils" and remove "from
  glance.common import utils" (when utils is no more used)
* glance/api/v2/images.py: replace utils.exception_to_str() with
  six.text_type() to cast the oslo_i18n message to Unicode

Glance exception_to_str() function was not compatible with Python 3,
whereas exception_to_unicode() is compatible with Python 3, it's in Oslo
common libraries and it's well tested.

This patch was first generated by a tool (modified version of sixer),
and then fixed to respect the PEP8 (especially the constraint of 80
columns).

Change-Id: I86008c8adc0c5664f96573c1015cc15e2d06e3e2
2015-07-17 18:31:03 +02:00
doc/source Merge "add annotation of param" 2015-07-16 22:53:46 +00:00
etc Merge "Correct reference to VC as vCenter" 2015-07-16 02:11:04 +00:00
glance Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
rally-jobs Changes in rally-jobs/README.rst 2015-06-04 17:45:04 +03:00
tools Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Add .eggs/* to .gitignore 2015-07-09 12:34:45 +00:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 11:02:16 -04:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.testr.conf Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
MANIFEST.in Update version code from oslo. 2013-01-13 14:27:48 -08:00
README.rst Fix rendering of readme document 2015-01-07 11:07:06 +00:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
openstack-common.conf Switch to oslo.service 2015-06-23 00:06:53 +02:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
requirements.txt Merge "Healthcheck Middleware" 2015-07-14 13:55:55 +00:00
run_tests.sh Provide a quick way to run flake8 2014-12-29 02:15:36 -05:00
setup.cfg Update version for Liberty 2015-06-18 19:56:34 +00:00
setup.py Update requirements 2015-07-02 11:40:46 +12:00
test-requirements.txt Update requirements 2015-07-02 11:40:46 +12:00
tox.ini Remove unneeded OS_TEST_DBAPI_ADMIN_CONNECTION 2015-07-03 22:59:30 +00:00

README.rst

Glance

Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images.

Use the following resources to learn more: