diff options
Diffstat (limited to 'storage/registry')
-rw-r--r-- | storage/registry/registry.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/storage/registry/registry.go b/storage/registry/registry.go index ad66c6a..f792946 100644 --- a/storage/registry/registry.go +++ b/storage/registry/registry.go @@ -35,13 +35,9 @@ func (e storageConfErr) Error() string { } func loadStorage(conf config.Config, storageName string) (storage.Storage, error) { - storageOptions, ok := conf.Storage[storageName] - if !ok { - return nil, notFoundErr - } + method, err := conf.GetStorageMethod(storageName) - var method string - if err := storageOptions.Get("method", &method); err != nil { + if err != nil { return nil, err } |