1
0
mirror of https://github.com/rancher/os.git synced 2025-09-18 16:27:31 +00:00

do not save/use bad cloud-config

This commit is contained in:
Ivan Mikushin
2015-08-20 19:20:51 +05:00
parent aa1af05d46
commit 642c557c73
4 changed files with 23 additions and 10 deletions

View File

@@ -67,6 +67,10 @@ func LoadConfig() (*CloudConfig, error) {
}
func (c *CloudConfig) merge(values map[interface{}]interface{}) error {
t := &CloudConfig{}
if err := util.Convert(values, t); err != nil {
return err
}
return util.Convert(values, c)
}