add readremoteconfig for cases when there are no local configuration files

This commit is contained in:
Brian Ketelsen 2014-10-27 10:14:45 -04:00
parent f8939d9229
commit c33e690687

View file

@ -468,7 +468,13 @@ func ReadInConfig() error {
MarshallReader(bytes.NewReader(file), config) MarshallReader(bytes.NewReader(file), config)
return nil return nil
} }
func ReadRemoteConfig() error {
err := getKeyValueConfig()
if err != nil {
return err
}
return nil
}
func MarshallReader(in io.Reader, c map[string]interface{}) { func MarshallReader(in io.Reader, c map[string]interface{}) {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
buf.ReadFrom(in) buf.ReadFrom(in)