mirror of
https://github.com/containers/skopeo.git
synced 2025-09-16 15:00:14 +00:00
fix invalid credentials error
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -505,7 +505,8 @@ func decodeDockerAuth(s string) (string, string, error) {
|
||||
}
|
||||
parts := strings.SplitN(string(decoded), ":", 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]
|
||||
password := strings.Trim(parts[1], "\x00")
|
||||
|
Reference in New Issue
Block a user