server: handle command line and env variables at one place. (#3975)

This commit is contained in:
Bala FA
2017-03-30 23:51:19 +05:30
committed by Harshavardhana
parent 447fdd4097
commit 2df8160f6a
14 changed files with 169 additions and 298 deletions

View File

@@ -522,7 +522,7 @@ func newTestConfig(bucketLocation string) (rootPath string, err error) {
setConfigDir(rootPath)
// Initialize server config.
if err = newConfig(envParams{}); err != nil {
if err = newConfig(); err != nil {
return "", err
}