Fixes docker-driver docker.auth.config processing

This commit is contained in:
Tom Michaud
2017-03-01 16:16:11 -07:00
parent 7a24146dcc
commit 6e561c7aa9

View File

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