mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Implementing PR feedback
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user