mirror of
https://github.com/containers/skopeo.git
synced 2025-08-14 12:46:03 +00:00
Merge pull request #36 from projectatomic/fix-creds
fix invalid credentials error
This commit is contained in:
commit
918a4d9110
@ -505,7 +505,8 @@ func decodeDockerAuth(s string) (string, string, error) {
|
|||||||
}
|
}
|
||||||
parts := strings.SplitN(string(decoded), ":", 2)
|
parts := strings.SplitN(string(decoded), ":", 2)
|
||||||
if len(parts) != 2 {
|
if len(parts) != 2 {
|
||||||
return "", "", fmt.Errorf("invalid auth configuration file")
|
// if it's invalid just skip, as docker does
|
||||||
|
return "", "", nil
|
||||||
}
|
}
|
||||||
user := parts[0]
|
user := parts[0]
|
||||||
password := strings.Trim(parts[1], "\x00")
|
password := strings.Trim(parts[1], "\x00")
|
||||||
|
Loading…
Reference in New Issue
Block a user