Skip to content

Commit

Permalink
Fix: fix an issue where the wrong action name could not be ignored
Browse files Browse the repository at this point in the history
Signed-off-by: xieyanke <[email protected]>
  • Loading branch information
xieyanke committed Feb 4, 2025
1 parent 4dea29b commit b5e9344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"strings"

"gopkg.in/yaml.v2"
"k8s.io/klog/v2"

"volcano.sh/volcano/pkg/scheduler/conf"
"volcano.sh/volcano/pkg/scheduler/framework"
Expand Down Expand Up @@ -80,7 +81,7 @@ func UnmarshalSchedulerConf(confStr string) ([]framework.Action, []conf.Tier, []
if action, found := framework.GetAction(strings.TrimSpace(actionName)); found {
actions = append(actions, action)
} else {
return nil, nil, nil, nil, fmt.Errorf("failed to find Action %s, ignore it", actionName)
klog.Warningf("failed to find Action %s, ignore it", actionName)
}
}

Expand Down

0 comments on commit b5e9344

Please sign in to comment.