cinder/cinder/db/sqlalchemy
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
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py db: Remove weird error handling code 2022-08-31 09:52:56 +01:00
models.py Merge "Report tri-state shared_targets for NVMe volumes" 2022-07-27 08:47:56 +00:00