Eric Fried 7df87fd4a2 Convert IOError from requests
This requests commit [1] changed the behavior when a nonexistent cacert
file is passed in: now it raises IOError.  This is getting through
glanceclient.common.http.HTTPClient._request, which used to raise
CommunicationError in this scenario.

Even though there is arguably a better exception than CommunicationError
to represent this condition (like maybe IOError), for backward
compatibility this change set converts IOError to CommunicationError.

We also improve the unit test to raise the original exception if the
expected conditions aren't met; this improves debugability.

[1] https://github.com/kennethreitz/requests/commit/7d8b87c37f3a5fb993fd83eda6888ac217cd108e

Change-Id: I6a2cf4c6d041b67d3509153b4cef18b459263648
Closes-Bug: #1692085
2017-05-19 14:59:58 -04:00
2017-01-24 17:33:12 +00:00
2016-08-30 20:40:33 +02:00
2016-02-11 11:58:19 +00:00
2012-04-03 20:50:44 -06:00
2013-11-11 10:52:07 -08:00
2012-03-26 22:48:48 -07:00
2016-12-01 12:38:08 -05:00
2013-06-22 16:00:26 +02:00
2017-04-20 09:40:15 +01:00
2017-03-02 11:54:22 +00:00
2017-03-24 01:52:08 +00:00

========================
Team and repository tags
========================

.. image:: http://governance.openstack.org/badges/python-glanceclient.svg
    :target: http://governance.openstack.org/reference/tags/index.html
    :alt: The following tags have been asserted for Python bindings to the
          OpenStack Images API:
          "project:official",
          "stable:follows-policy",
          "vulnerability:managed",
          "team:diverse-affiliation".
          Follow the link for an explanation of these tags.
.. NOTE(rosmaita): the alt text above will have to be updated when
   additional tags are asserted for python-glanceclient.  (The SVG in the
   governance repo is updated automatically.)

.. Change things from this point on

===========================================
Python bindings to the OpenStack Images API
===========================================

.. image:: https://img.shields.io/pypi/v/python-glanceclient.svg
    :target: https://pypi.python.org/pypi/python-glanceclient/
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/dm/python-glanceclient.svg
    :target: https://pypi.python.org/pypi/python-glanceclient/
    :alt: Downloads

This is a client library for Glance built on the OpenStack Images API. It provides a Python API (the ``glanceclient`` module) and a command-line tool (``glance``). This library fully supports the v1 Images API, while support for the v2 API is in progress.

Development takes place via the usual OpenStack processes as outlined in the `developer guide <http://docs.openstack.org/infra/manual/developers.html>`_.  The master repository is in `Git <https://git.openstack.org/cgit/openstack/python-glanceclient>`_.

See release notes and more at `<http://docs.openstack.org/developer/python-glanceclient/>`_.

* License: Apache License, Version 2.0
* `PyPi`_ - package installation
* `Online Documentation`_
* `Launchpad project`_ - release management
* `Blueprints`_ - feature specifications
* `Bugs`_ - issue tracking
* `Source`_
* `Specs`_
* `How to Contribute`_

.. _PyPi: https://pypi.python.org/pypi/python-glanceclient
.. _Online Documentation: http://docs.openstack.org/developer/python-glanceclient
.. _Launchpad project: https://launchpad.net/python-glanceclient
.. _Blueprints: https://blueprints.launchpad.net/python-glanceclient
.. _Bugs: https://bugs.launchpad.net/python-glanceclient
.. _Source: https://git.openstack.org/cgit/openstack/python-glanceclient
.. _How to Contribute: http://docs.openstack.org/infra/manual/developers.html
.. _Specs: http://specs.openstack.org/openstack/glance-specs/

S
Description
No description provided
Readme 1.7 MiB
Languages
Python 99.4%
Shell 0.6%