-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 handling of duplicate matches on id expansion #12969
Conversation
This fixes the issue people are seeing, but it does not fix a deeper problem. When we get an error that is not known sending Is causing the unexpected JSON message. |
pkg/api/handlers/utils/errors.go
Outdated
if errors.Cause(err) != define.ErrNoSuchCtr { | ||
var msg string | ||
switch errors.Cause(err) { | ||
case define.ErrNoSuchNetwork: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case define.ErrNoSuchNetwork: | |
case define.ErrNoSuchCtr: |
Fixes: containers#12963 [NO NEW TESTS NEEDED] I don't know how to create two containers with the same first digit of the digest, which I could them attempt to remove. Signed-off-by: Daniel J Walsh <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, zhangguanzhang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Fixes: #12963
[NO NEW TESTS NEEDED] I don't know how to create two
containers with the same first digit of the digest,
which I could them attempt to remove.
Signed-off-by: Daniel J Walsh [email protected]