|
@@ -179,7 +179,7 @@ func persistConf(configMap map[string]interface{}) error {
|
|
|
return fmt.Errorf("Error updating global config: %v", err)
|
|
return fmt.Errorf("Error updating global config: %v", err)
|
|
|
}
|
|
}
|
|
|
// write to disk
|
|
// write to disk
|
|
|
- config.Logger.Info("Persisting configuration to disk")
|
|
|
|
|
|
|
+ Logger.Info("Persisting configuration to disk")
|
|
|
if err := ioutil.WriteFile(confPath, updatedJSON, 0644); err != nil {
|
|
if err := ioutil.WriteFile(confPath, updatedJSON, 0644); err != nil {
|
|
|
return fmt.Errorf("Error writing to file: %v", err)
|
|
return fmt.Errorf("Error writing to file: %v", err)
|
|
|
}
|
|
}
|