1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 07:30:42 +00:00
Files
os/config/default.go

17 lines
274 B
Go
Raw Normal View History

2015-02-16 22:08:48 -07:00
package config
func NewConfig() *CloudConfig {
return ReadConfig(OsConfigFile)
}
func ReadConfig(file string) *CloudConfig {
if data, err := readConfig(nil, file); err == nil {
c := &CloudConfig{}
c.merge(data)
c.amendNils()
return c
} else {
return nil
2015-02-16 22:08:48 -07:00
}
}