mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Close file
This commit is contained in:
@@ -1409,6 +1409,7 @@ func authOptionFrom(file, repo string) (*docker.AuthConfiguration, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Failed to open auth config file: %v, error: %v", file, err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
cfile := new(configfile.ConfigFile)
|
||||
if err := cfile.LoadFromReader(f); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user