Eric Fried 51bfa030b1 raise_exc default in Adapter
It can be annoying to have to say raise_exc=False (or use try/except) on
every call when talking to an API where 4xx response codes are
useful/normal/informative or where the preferred coding style is to use
conditionals rather than try/except.

With this change, the Adapter constructor takes a new kwarg, raise_exc.
It defaults to None, and the existing behavior is unchanged.  If set to
a boolean value, that is used as the default for requests.  Specifying
raise_exc to the primitives (get, head, put, post, patch, delete,
request) at any point along the chain will still take precedence.

Change-Id: Ie291c3cb891467728d8ca33cf62afdab37c82f34
Closes-Bug: #1776501
2018-06-12 10:48:39 -05:00
2018-03-23 01:02:37 +00:00
2015-12-09 11:46:00 +11:00
2017-09-20 15:47:15 -05:00
2014-05-07 12:12:43 -07:00
2017-09-20 15:47:15 -05:00
2018-04-19 09:54:28 +02:00
2018-04-19 09:54:28 +02:00
2017-09-20 15:47:15 -05:00
2018-05-01 15:25:26 +00:00
2018-04-19 09:54:28 +02:00
2017-03-08 22:46:11 +00:00
2018-06-06 15:27:00 -04:00

Team and repository tags

image

keystoneauth

Latest Version

Downloads

This package contains tools for authenticating to an OpenStack-based cloud. These tools include:

  • Authentication plugins (password, token, and federation based)
  • Discovery mechanisms to determine API version support
  • A session that is used to maintain client settings across requests (based on the requests Python library)

Further information:

Description
OpenStack Identity Authentication Library
Readme 12 MiB
Languages
Python 100%