Merge pull request #100226 from houjun41544/20210315-nodeaffinity

Fix wrong log
This commit is contained in:
Kubernetes Prow Robot 2021-08-04 18:58:38 -07:00 committed by GitHub
commit f136e80269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,9 +158,6 @@ func (pl *NodeAffinity) Score(ctx context.Context, state *framework.CycleState,
}
node := nodeInfo.Node()
if node == nil {
return 0, framework.AsStatus(fmt.Errorf("getting node %q from Snapshot: %w", nodeName, err))
}
var count int64
if pl.addedPrefSchedTerms != nil {