Don't return error if we can't parse the creds

We just continue on to the next credentials
This commit is contained in:
Djordje Lukic 2020-08-05 15:08:40 +02:00
parent e0f8289f1c
commit 9103215bf3
1 changed files with 3 additions and 1 deletions

View File

@ -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