Keystone has only been returning v3 catalogs for a while now, so many
client libraries have dropped support for the old v2 catalogs. We should
switch to the new format so we stop causing KeyErrors like
File ".../cliff/formatters/table.py", line 109, in add_rows
table.add_row(_format_row(first_row))
^^^^^^^^^^^^^^^^^^^^^^
File ".../cliff/formatters/table.py", line 38, in _format_row
r = r.human_readable()
^^^^^^^^^^^^^^^^^^
File ".../openstackclient/identity/v3/catalog.py", line 37, in human_readable
ret += " {}: {}\n".format(ep['interface'], ep['url'])
~~^^^^^^^^^^^^^
KeyError: 'interface'
(Previously seen while trying to run `openstack catalog show` with latest
python-openstackclient/osc-lib/openstacksdk -- but this used to work!)
Change-Id: Ie8726b97e1dde7d7bfd8e4215af6af52e1fd870e
Signed-off-by: Tim Burke <tim.burke@gmail.com>
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.
This code is based on the original client previously included with OpenStack's Swift. The python-swiftclient is licensed under the Apache License like the rest of OpenStack.
- Free software: Apache license
- PyPI - package installation
- Online Documentation
- Launchpad project - release management
- Bugs - issue tracking
- Source
- How to Contribute
- Release Notes
Contents:
Description
Languages
Python
99.9%
Shell
0.1%