Go to file
David Shrewsbury 9aa52eecb5 Confirm we have auth creds before clearing preauth
If you use the API and supply only preauth values (preauthurl and
preauthtoken), and if either of these are incorrect, a non-descriptive
AttributeError will be thrown and uncaught:

 'NoneType' object has no attribute 'find'

The _retry() will fail on the first pass (getting 401), then try
to reauthenticate with non-preauth values. If those are not given,
particularly the auth url, then the urlparse() call will be supplied
None for the url in http_connection() causing the exception above.

This change makes sure that we have an auth url, user and key before
retrying authentication. Given the situation above, a '401 Unauthorized'
ClientException will now be thrown instead of the AttributeError.

Change-Id: Ie1b5bde1e8ff321aa18c0f23dbd2960d6e482236
2013-04-25 07:43:43 -04:00
2013-04-04 23:08:25 +00:00
2013-02-26 12:47:34 -07:00
2013-01-18 16:13:27 -05:00
2013-01-18 16:13:27 -05:00
2013-01-18 16:13:27 -05:00
2012-05-08 16:30:13 +01:00
2012-06-26 21:23:25 -05:00
2012-05-08 15:21:56 +01:00
2012-05-21 12:52:55 +02:00
2013-01-18 16:13:27 -05:00
2013-01-30 21:56:29 +00:00
2013-03-22 15:00:40 +00:00

Python bindings to the OpenStack Object Storage API

This is a python client for the Swift API. There's a Python API (the swiftclient module), and a command-line script (swift).

Development takes place via the usual OpenStack processes as outlined in the OpenStack wiki. The master repository is on GitHub.

This code is based on original the client previously included with OpenStack's swift The python-swiftclient is licensed under the Apache License like the rest of OpenStack.

Contents:

Description
OpenStack Storage (Swift) Client
Readme 14 MiB
Languages
Python 99.9%
Shell 0.1%