Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(registry): http error 409 when registry with same url and credentials exists #17

Merged
merged 1 commit into from
Mar 8, 2022
Merged

fix(registry): http error 409 when registry with same url and credentials exists #17

merged 1 commit into from
Mar 8, 2022

Conversation

mrtwnklr
Copy link
Contributor

@mrtwnklr mrtwnklr commented Mar 8, 2022

Accepts http code 409 as success.
Fixes the following error:

TASK [shelleg.ansible_role_portainer : Configure Registry] ****************************************************************************************************************************************
fatal: [operations-test.local]: FAILED! => {"changed": false, "connection": "close", "content": "{\"message\":\"Another registry with the same URL and credentials already exists\",\"details\":\"A registry is already defined for this URL and credentials\"}\n", "content_length": "151", "content_type": "application/json", "date": "Tue, 08 Mar 2022 06:08:24 GMT", "elapsed": 0, "json": {"details": "A registry is already defined for this URL and credentials", "message": "Another registry with the same URL and credentials already exists"}, "msg": "Status code was 409 and not [200]: HTTP Error 409: Conflict", "redirected": false, "status": 409, "url": "http://172.17.0.2:9000/api/registries", "x_content_type_options": "nosniff", "x_xss_protection": "1; mode=block"}

Might also resolve the second mentioned error in #11

@mrtwnklr mrtwnklr changed the title fix(registry): http error 409 when registry with same url and credent… fix(registry): http error 409 when registry with same url and credentials exists Mar 8, 2022
@mrtwnklr mrtwnklr marked this pull request as ready for review March 8, 2022 06:25
@hagzag hagzag merged commit 4eb215f into shelleg:master Mar 8, 2022
@mrtwnklr mrtwnklr deleted the bugfix/conflict_when_registry_exists branch March 8, 2022 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants