openstack-python-openstackc.../openstackclient/common
Stephen Finucane 99cef9354b 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
2024-12-09 15:49:40 +00:00
..
__init__.py Remove copyright from empty files 2014-01-20 17:28:13 +04:00
availability_zone.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
clientmanager.py clientmanager: Check for 'block-storage' service type 2024-10-15 18:07:26 +01:00
configuration.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
extension.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
limits.py common: Use correct argument for volume limits 2024-11-05 17:07:49 +00:00
module.py pre-commit: Migrate bandit to ruff 2024-09-12 18:08:23 +01:00
pagination.py Add pagination helpers 2023-11-03 23:16:18 +00:00
progressbar.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
project_cleanup.py Respect --skip-resource when deleting. 2024-07-25 20:20:56 +01:00
quota.py quota: Catch correct exception type for Compute quotas 2024-12-09 15:49:40 +00:00
versions.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00