Skip to content

Commit

Permalink
Fix for not setting Gofig global/user dirs
Browse files Browse the repository at this point in the history
This patch fixes the issue where the Gofig's global (/etc) and user
($HOME) directories were not set, resulting in the default config files
not being loaded.
  • Loading branch information
akutz committed Dec 2, 2015
1 parent 30d426f commit d040235
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/core.go
@@ -1,11 +1,19 @@
package core

import (
"fmt"

"github.com/akutz/gofig"

"github.com/emccode/rexray/util"
)

func init() {
initDrivers()

gofig.SetGlobalConfigPath(util.EtcDirPath())
gofig.SetUserConfigPath(fmt.Sprintf("%s/.rexray", util.HomeDir()))

gofig.Register(globalRegistration())
gofig.Register(driverRegistration())
}
Expand Down

0 comments on commit d040235

Please sign in to comment.