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