Bug #35482
closedACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2119120
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.12.0 Snap 6.1
How reproducible:
Always
Steps to Reproduce:
1. Enable ACS lab feature
2. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/ --smart-proxy-ids 1
Alternate Content Source created.
3. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/
Could not create the Alternate Content Source.:
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_katello_alternate_content_sources_on_name"
DETAIL: Key (name)=(test_repo_acs) already exists.
Actual results:
Expected results:
Additional info: