1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 04:01:20 +00:00

Merge pull request #293 from wlan0/bugfix2

Fix #283: Check type while setting config via rancherctl
This commit is contained in:
Darren Shepherd
2015-05-06 14:50:30 -07:00

View File

@@ -236,6 +236,12 @@ func (c *Config) Set(key string, value interface{}) error {
getOrSetVal(key, data, value)
cfg := NewConfig()
if err := util.Convert(data, cfg); err != nil {
return err
}
err = saveToDisk(data)
if err != nil {
return err