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 <dave.chen@arm.com>
This commit is contained in:
Dave Chen
2020-06-08 16:39:19 +08:00
parent b93e9d9395
commit 02fb3387a0

View File

@@ -137,7 +137,7 @@ func (pl *InterPodAffinity) PreScore(
}
if pl.sharedLister == nil {
return framework.NewStatus(framework.Error, fmt.Sprintf("BuildTopologyPairToScore with empty shared lister"))
return framework.NewStatus(framework.Error, fmt.Sprintf("InterPodAffinity PreScore with empty shared lister found"))
}
affinity := pod.Spec.Affinity