mirror of
https://github.com/rancher/os.git
synced 2025-09-25 04:37:02 +00:00
Validate value for 'ros config set'
This commit is contained in:
@@ -46,5 +46,11 @@ func Set(key string, value interface{}) error {
|
||||
}
|
||||
|
||||
_, modified := getOrSetVal(key, existing, value)
|
||||
|
||||
c := &CloudConfig{}
|
||||
if err = util.Convert(modified, c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return WriteToFile(modified, CloudConfigFile)
|
||||
}
|
||||
|
Reference in New Issue
Block a user