Merge pull request #12168 from cpuguy83/remove_dup_file_creation

Remove duplicate config file creation.
This commit is contained in:
Arnaud Porterie 2015-04-08 09:03:43 -07:00
commit a6d39e2a2d

View file

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