Merge pull request #2389 from tmichaud314/2388-docker-driver-auth-file
Fixes docker-driver docker.auth.config processing
This commit is contained in:
commit
2aa962a357
|
@ -992,7 +992,8 @@ func (d *DockerDriver) pullImage(driverConfig *DockerDriverConfig, client *docke
|
|||
ServerAddress: driverConfig.Auth[0].ServerAddress,
|
||||
}
|
||||
} else if authConfigFile := d.config.Read("docker.auth.config"); authConfigFile != "" {
|
||||
authOptions, err := authOptionFrom(authConfigFile, repo)
|
||||
var err error
|
||||
authOptions, err = authOptionFrom(authConfigFile, repo)
|
||||
if err != nil {
|
||||
d.logger.Printf("[INFO] driver.docker: failed to find docker auth for repo %q: %v", repo, err)
|
||||
return "", fmt.Errorf("Failed to find docker auth for repo %q: %v", repo, err)
|
||||
|
|
Loading…
Reference in a new issue