cinder/cinder/db
Stephen Finucane dc7c101480 db: Remove weird error handling code
The 'driver_initiator_data_insert_by_key' DB API is exceptional in that
it attempts to create a DB entry and returns a boolean value if there's
a duplicate error rather than raise an exception. This means we need to
do some special handling. Avoid the need for this special handling by
raising an exception like everyone else and do the mapping to boolean
values in the sole caller.

Change-Id: I25472f592dbdb487fbbb376cb92ee0dda76b677a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-08-31 09:52:56 +01:00
..
legacy_migrations db: Move sqlalchemy-migrate migrations 2021-08-27 15:13:21 +01:00
migrations Report tri-state shared_targets for NVMe volumes 2022-05-24 15:13:23 +02:00
sqlalchemy db: Remove weird error handling code 2022-08-31 09:52:56 +01:00
__init__.py Enable flake8 H303,H304 checking 2014-04-15 09:16:01 +00:00
alembic.ini db: Enable auto-generation of database migrations 2022-02-20 19:06:01 +00:00
api.py db: Remove weird error handling code 2022-08-31 09:52:56 +01:00
base.py db: Remove 'db_driver' option 2021-08-27 15:13:21 +01:00
migration.py Remove unused variable 2022-01-20 16:23:14 +00:00