mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-26 19:35:10 +00:00
Ensure that we are closing files.
This commit is contained in:
@@ -156,6 +156,7 @@ func readInstanceID() (string, error) {
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Cannot open %s: %v", metaDataPath, err)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
return parseMetaData(file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user