SQL command with IntegrityError when any number of
constraints fail to pass. These include checking for
duplicates, checking for not null, or foreign key checks.
Barbican was reporting these all as duplicates which can confuse
debugging. This patch reports the error more accurately as an
SQL constraint check failure.
Change-Id: I7043fe01f949326b1e38c8f320ece8418f36acc4
Co-Authored-By: Dave McCowan <dmccowan@cisco.com>
Closes-bug: #1489457