From 4903810b18ac693bce67b686d0144223f61bcf0c Mon Sep 17 00:00:00 2001 From: xieyanke Date: Tue, 4 Feb 2025 22:38:20 +0800 Subject: [PATCH] Fix: fix an issue where the wrong action name could not be ignored Signed-off-by: xieyanke --- pkg/scheduler/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/scheduler/util.go b/pkg/scheduler/util.go index 57c03c4d53..0af6727b1f 100644 --- a/pkg/scheduler/util.go +++ b/pkg/scheduler/util.go @@ -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" @@ -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.Errorf("Failed to find Action %s, ignore it", actionName) } }