You've already forked compose-cli
mirror of
https://github.com/docker/compose-cli.git
synced 2026-10-25 06:19:18 +03:00
Don't return error if we can't parse the creds
We just continue on to the next credentials
This commit is contained in:
@@ -73,8 +73,10 @@ func getRegistryCredentials(project compose.Project, registryLoader registryConf
|
||||
var registryCreds []containerinstance.ImageRegistryCredential
|
||||
for name, oneCred := range allCreds {
|
||||
parsedURL, err := url.Parse(name)
|
||||
// Credentials can contain some garbage, we don't return the error here
|
||||
// because we don't care about these garbage creds.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
continue
|
||||
}
|
||||
|
||||
hostname := parsedURL.Host
|
||||
|
||||
Reference in New Issue
Block a user