keystone/keystone/identity/mapping_backends
Boris Bobrov 29624d47e3 Prevent error when duplicate mapping is created
The mapping has unique constraint and creating a mapping with the same
local entity will fail. Creation of mapping with the same local entity
might happen because of race condition, that would happen if 2 processes
start mapping of the same local entity at the same time.

Return the existing public_id if creation failed due to duplicate.

Change-Id: Ic6e6ec9614e16a49c791dc6c06a4464d18be09be
Related-Bug: 1582585
2016-07-18 12:38:48 +03:00
..
__init__.py Add identity mapping capability 2014-07-02 11:29:07 +01:00
base.py Fix D401 PEP8 violation. 2016-04-14 20:08:52 +00:00
mapping.py Correct failures for H238 2015-01-11 17:33:21 -06:00
sql.py Prevent error when duplicate mapping is created 2016-07-18 12:38:48 +03:00