openstack-python-openstackc.../openstackclient
Roger Luethi 0a8d855764 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.

Change-Id: I2ea2def607ec5be112e42d53a1e660fef0cdd69c
(cherry picked from commit 0a8753dc3e)
2021-01-21 14:26:33 +00:00
..
api Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
common Switch image to use SDK 2020-03-23 14:38:32 -05:00
compute Merge "Add API check for server_groups.list" into stable/ussuri 2020-10-14 06:23:25 +00:00
identity Fix reverted osc-lib interface change 2021-01-21 14:26:33 +00:00
image Don't look up project by id if given id 2020-03-24 13:13:12 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Add "fields" parameter to ListSecurityGroup query" 2020-03-24 14:07:02 +00:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests Merge "Bypass user and group verification in RemoveRole" into stable/ussuri 2020-11-11 21:21:54 +00:00
volume Merge "Switch image to use SDK" 2020-03-25 15:19:20 +00: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 Remove redundant OpenStackShell.prepare_to_run_command 2019-10-31 16:53:30 +00:00