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 e2fa07e + 1827922 commit 485b706
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 485b706

Please sign in to comment.