Skip to content

Commit

Permalink
fix nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-yduck committed Feb 1, 2025
1 parent aa291cf commit 2bc597e
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 2bc597e

Please sign in to comment.