mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #430 from claire921/errstr
pkg/master: correct error string for GetPodInfo
This commit is contained in:
commit
c2f551172d
@ -56,7 +56,7 @@ func (p *PodCache) GetPodInfo(host, podID string) (api.PodInfo, error) {
|
|||||||
defer p.podLock.Unlock()
|
defer p.podLock.Unlock()
|
||||||
value, ok := p.podInfo[podID]
|
value, ok := p.podInfo[podID]
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.New("No cached pod info")
|
return nil, errors.New("no cached pod info")
|
||||||
} else {
|
} else {
|
||||||
return value, nil
|
return value, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user