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:
@@ -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
|
||||
|
Reference in New Issue
Block a user