Rename 'GraphPath' to the more logical 'Root'. This does not affect users except for a slight text change in the usage messge

This commit is contained in:
Solomon Hykes
2013-10-26 14:24:13 -07:00
parent 1b8eef4efb
commit 7e691e11b0
6 changed files with 17 additions and 19 deletions
+3 -3
View File
@@ -46,8 +46,8 @@ func nuke(runtime *Runtime) error {
wg.Wait()
runtime.Close()
os.Remove(filepath.Join(runtime.config.GraphPath, "linkgraph.db"))
return os.RemoveAll(runtime.config.GraphPath)
os.Remove(filepath.Join(runtime.config.Root, "linkgraph.db"))
return os.RemoveAll(runtime.config.Root)
}
func cleanup(runtime *Runtime) error {
@@ -119,7 +119,7 @@ func init() {
func setupBaseImage() {
config := &DaemonConfig{
GraphPath: unitTestStoreBase,
Root: unitTestStoreBase,
AutoRestart: false,
BridgeIface: unitTestNetworkBridge,
}