openstack-python-openstackc.../openstackclient
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
..
api pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
common quota: Catch correct exception type for Compute quotas 2024-12-09 15:49:40 +00:00
compute Replace deprecated datetime.utcnow() 2024-11-13 15:48:59 +00:00
identity Fix ignored --user-domain in role assignment list 2024-10-29 21:20:07 +09:00
image pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Merge "Add "trusted" attribute to the "port"" 2024-11-08 17:32:37 +00: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 Merge "Show Created At column for volume backups in v3" 2024-11-20 16:38:57 +00:00
volume Show Created At column for volume backups in v3 2024-10-17 16:25:13 +02: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 pre-commit: Migrate pyupgrade to ruff 2024-09-12 18:08:23 +01:00