Advertising

--
Martin^3 Babinsky

Thanks for the patch. Conditional ACK.
Patch is tested and works, but I am wary about checking for
substring match against RemoteRetrieveError reason string (see hunk
below). It would be better to carry the status code as an attribute
of RemoteRetrieveError and check whether it is 409.

If you agree, we can file a ticket and I am happy for these patches
to be merged as-is. The scope of changing RemoteRetrieveError is
larger than #5682 so it makes sense to do it separately, and just
for master branch.

I don't think this is the right approach. create_profile() should raise
DuplicateEntry rather than RemoteRetrieveError if the profile already
exists, which can then be properly handled in _create_dogtag_profile().