Skip to content

Commit

Permalink
Merge pull request #189 from k8s-proxmox/fix/empty-node-score-err
Browse files Browse the repository at this point in the history
fix nil map
  • Loading branch information
sp-yduck authored Feb 1, 2025
2 parents aa291cf + 2bc597e commit e1aea0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (s *Scheduler) RunFilterPlugins(ctx context.Context, state *framework.Cycle
func (s *Scheduler) RunScorePlugins(ctx context.Context, state *framework.CycleState, config api.VirtualMachineCreateOptions, nodes []*api.Node) (framework.NodeScoreList, *framework.Status) {
s.logger.Info("scoring proxmox node")
status := framework.NewStatus()
var scoresMap map[string](map[int]framework.NodeScore)
scoresMap := make(map[string](map[int]framework.NodeScore))
nodeInfos, err := framework.GetNodeInfoList(ctx, s.client)
if err != nil {
status.SetCode(1)
Expand Down

0 comments on commit e1aea0b

Please sign in to comment.