diff --git a/pkg/scheduler/framework/interface.go b/pkg/scheduler/framework/interface.go index feadee9af8d..9c587aa3aed 100644 --- a/pkg/scheduler/framework/interface.go +++ b/pkg/scheduler/framework/interface.go @@ -209,7 +209,7 @@ func (s *Status) IsUnschedulable() bool { return code == Unschedulable || code == UnschedulableAndUnresolvable } -// AsError returns nil if the status is a success or a wait; otherwise returns an "error" object +// AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object // with a concatenated message on reasons of the Status. func (s *Status) AsError() error { if s.IsSuccess() || s.IsWait() || s.IsSkip() {