mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
fix the wrong err print of assumepod
This commit is contained in:
parent
e35d67e032
commit
a478db6ada
@ -131,7 +131,7 @@ func (cache *schedulerCache) AssumePod(pod *v1.Pod) error {
|
|||||||
cache.mu.Lock()
|
cache.mu.Lock()
|
||||||
defer cache.mu.Unlock()
|
defer cache.mu.Unlock()
|
||||||
if _, ok := cache.podStates[key]; ok {
|
if _, ok := cache.podStates[key]; ok {
|
||||||
return fmt.Errorf("pod %v is not in the cache, so can't be assumed", key)
|
return fmt.Errorf("pod %v is in the cache, so can't be assumed", key)
|
||||||
}
|
}
|
||||||
|
|
||||||
cache.addPod(pod)
|
cache.addPod(pod)
|
||||||
|
Loading…
Reference in New Issue
Block a user