Merge pull request #2076 from rhatdan/storage.conf
If local storage file exists, then use it rather then defau…
This commit is contained in:
commit
4f19f1afca
|
|
@ -316,6 +316,7 @@ func GetDefaultStoreOptions() (storage.StoreOptions, string, error) {
|
|||
|
||||
storageConf := StorageConfigFile()
|
||||
if _, err := os.Stat(storageConf); err == nil {
|
||||
storageOpts = storage.StoreOptions{}
|
||||
storage.ReloadConfigurationFile(storageConf, &storageOpts)
|
||||
} else if os.IsNotExist(err) {
|
||||
os.MkdirAll(filepath.Dir(storageConf), 0755)
|
||||
|
|
|
|||
Loading…
Reference in New Issue