openstack-python-openstackc.../openstackclient
Stephen Finucane f42ade4305 quota: Catch correct exception type for Compute quotas
There is a flaw (IMO) in the design of Nova's os-quota-sets API: despite
project IDs forming the identifier for an individual resource, we get a
HTTP 400 (Bad Request) error if you pass an ID that does not exist,
rather than the HTTP 404 (Not Found) we would expect.

Correct this, noting why we're doing what we're doing for readers from
the future (hi!). Note that HTTP 400 is unfortunately quite broad and
means we'll also catch things like invalid requests but the exception
may have been translated so we can't rely on a string match.

Change-Id: I720502930d50be8ead5f2033d9dbcab5d99a37a9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #2091086
(cherry picked from commit 99cef9354b)
2024-12-11 15:01:06 +00:00
..
api network: Replace use of in-tree API client 2024-07-09 18:19:36 +01:00
common quota: Catch correct exception type for Compute quotas 2024-12-11 15:01:06 +00:00
compute compute: Fix --host in server list for new openstacksdk 2024-10-03 10:48:24 +00:00
identity Fix ignored --user-domain in role assignment list 2024-11-05 17:07:21 +00:00
image Remove python-novaclient 2024-07-18 13:28:51 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network network: Replace use of in-tree API client 2024-07-09 18:19:36 +01:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
releasenotes/notes Show Created At column for volume backups 2024-05-19 22:17:06 +02:00
tests Fix ignored --user-domain in role assignment list 2024-11-05 17:07:21 +00:00
volume Merge "Show Created At column for volume backups" 2024-08-09 12:20:45 +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 trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00