Skip to content

Commit 02fb338

Browse files
committed
Fix the incorrect error message of InterPodAffinity plugin
A line of copy/paste code firstly from the method named `buildTopologyPairToScore`. Signed-off-by: Dave Chen <[email protected]>
1 parent b93e9d9 commit 02fb338

File tree

1 file changed

+1
-1
lines changed
  • pkg/scheduler/framework/plugins/interpodaffinity

1 file changed

+1
-1
lines changed

pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (pl *InterPodAffinity) PreScore(
137137
}
138138

139139
if pl.sharedLister == nil {
140-
return framework.NewStatus(framework.Error, fmt.Sprintf("BuildTopologyPairToScore with empty shared lister"))
140+
return framework.NewStatus(framework.Error, fmt.Sprintf("InterPodAffinity PreScore with empty shared lister found"))
141141
}
142142

143143
affinity := pod.Spec.Affinity

0 commit comments

Comments
 (0)