refactor the profile add
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
This commit is contained in:
@@ -14,8 +14,10 @@ import (
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
var ConfigFile string
|
||||
var DefaultConfig string
|
||||
var (
|
||||
ConfigFile string
|
||||
DefaultConfig string
|
||||
)
|
||||
|
||||
var cachedDB NodeYaml
|
||||
|
||||
@@ -91,7 +93,8 @@ func New() (NodeYaml, error) {
|
||||
wwlog.Debug("Returning node object")
|
||||
cachedDB = ret
|
||||
cachedDB.current = true
|
||||
return ret, nil
|
||||
cachedDB.persist = true
|
||||
return cachedDB, nil
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user