openstack-python-openstackc.../openstackclient
Roger Luethi de0be9db05 Fix reverted osc-lib interface change
The patch https://review.opendev.org/#/c/673389/ introduced a regression
by changing the osc-lib interface.

Two conflicting attempts to fix the regression were launched:

1) Reverting the patch.

2) The patch https://review.opendev.org/683119 changes the exception
   from the generic CommandError back to a specific Forbidden exception.

   The patch https://review.opendev.org/683118 catches this exception
   and passes on, i.e. re-implements the same behavior as before.

The first idea was implemented, the initial patch reverted. The second
idea was partially implemented. The change in python-openstackclient
(683118) was merged. The change in osc-lib was approved but failed to
merge because the initial change had been reverted.

Now we have again a situation where the exception produced in osc-lib
does not match the exception expected by the caller.

It is unclear if the osc-lib interface will ever get a rebased version
of https://review.opendev.org/683119 merged, so the safest way to
address the issue is to also catch the exception that used to be
thrown before the inital change and is again thrown after the inital
change has been reverted.

Conflicts:
    openstackclient/identity/common.py

Change-Id: I2ea2def607ec5be112e42d53a1e660fef0cdd69c
(cherry picked from commit 0a8753dc3e)
(cherry picked from commit 0a8d855764)
2021-07-12 15:46:59 +01:00
..
api Remove token_endpoint auth type 2019-08-27 11:08:50 -05:00
common Clean up app initialization and config 2019-09-09 14:01:57 +00:00
compute Merge "Add API check for server_groups.list" into stable/train 2020-11-02 23:22:05 +00:00
identity Fix reverted osc-lib interface change 2021-07-12 15:46:59 +01:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Fix router create/show if extraroute not supported 2020-03-18 10:05:19 +00:00
object Use cliff formattable columns in object storage commands 2019-06-22 18:44:27 +00:00
tests Merge "Bypass user and group verification in RemoveRole" into stable/train 2020-12-02 18:21:58 +00:00
volume Default to Cinder v3 API 2019-09-09 09:35:44 -05:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Clean up app initialization and config 2019-09-09 14:01:57 +00:00