Implementing PR feedback

This commit is contained in:
Abhishek Gupta
2015-02-26 16:40:15 -08:00
parent 548e0da567
commit 3607a16293
6 changed files with 94 additions and 70 deletions

View File

@@ -101,7 +101,6 @@ func (s *SchedulerServer) createConfig(configFactory *factory.ConfigFactory) (*s
if err != nil {
return nil, fmt.Errorf("Unable to read policy config: %v", err)
}
//err = json.Unmarshal(configData, &policy)
err = latestschedulerapi.Codec.DecodeInto(configData, &policy)
if err != nil {
return nil, fmt.Errorf("Invalid configuration: %v", err)