mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02: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:
parent
e0f8289f1c
commit
9103215bf3
@ -73,8 +73,10 @@ func getRegistryCredentials(project compose.Project, registryLoader registryConf
|
|||||||
var registryCreds []containerinstance.ImageRegistryCredential
|
var registryCreds []containerinstance.ImageRegistryCredential
|
||||||
for name, oneCred := range allCreds {
|
for name, oneCred := range allCreds {
|
||||||
parsedURL, err := url.Parse(name)
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
hostname := parsedURL.Host
|
hostname := parsedURL.Host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user