Merge pull request #12168 from cpuguy83/remove_dup_file_creation
Remove duplicate config file creation. Upstream-commit: a6d39e2a2de314be7f518a44df0505de8b6b65b4 Component: engine
This commit is contained in:
@ -102,15 +102,6 @@ func (v *Volume) initialize() error {
|
||||
if err := os.MkdirAll(v.configPath, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
jsonPath, err := v.jsonPath()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f, err := os.Create(jsonPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
return v.toDisk()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user