Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#632 from hex108/bug
Browse files Browse the repository at this point in the history
Set schedConf to defaultSchedulerConf if failing to readSchedulerConf
  • Loading branch information
k8s-ci-robot authored Mar 11, 2019
2 parents dc5d351 + debae4a commit 1e53499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (pc *Scheduler) Run(stopCh <-chan struct{}) {
if schedConf, err = readSchedulerConf(pc.schedulerConf); err != nil {
glog.Errorf("Failed to read scheduler configuration '%s', using default configuration: %v",
pc.schedulerConf, err)
schedConf = defaultSchedulerConf
}
}

Expand Down

0 comments on commit 1e53499

Please sign in to comment.