1
0
mirror of https://github.com/rancher/os.git synced 2025-09-15 22:49:08 +00:00

make cloud-config the configuration mechanism for RancherOS

This commit is contained in:
Ivan Mikushin
2015-07-29 11:52:15 +05:00
parent 5d93d51fc5
commit 7ad60c07bd
24 changed files with 919 additions and 917 deletions

View File

@@ -1,13 +1,14 @@
package config
func NewConfig() *Config {
func NewConfig() *CloudConfig {
return ReadConfig(OsConfigFile)
}
func ReadConfig(file string) *Config {
func ReadConfig(file string) *CloudConfig {
if data, err := readConfig(nil, file); err == nil {
c := &Config{}
c := &CloudConfig{}
c.merge(data)
c.amendNils()
return c
} else {
return nil