1
0
mirror of https://github.com/rancher/os.git synced 2025-09-25 20:52:58 +00:00

Validate value for 'ros config set'

This commit is contained in:
Josh Curl
2016-06-16 10:14:52 -07:00
parent d797d587ab
commit f850e151de

View File

@@ -46,5 +46,11 @@ func Set(key string, value interface{}) error {
} }
_, modified := getOrSetVal(key, existing, value) _, modified := getOrSetVal(key, existing, value)
c := &CloudConfig{}
if err = util.Convert(modified, c); err != nil {
return err
}
return WriteToFile(modified, CloudConfigFile) return WriteToFile(modified, CloudConfigFile)
} }