mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Fix crash in kubectl run
This commit is contained in:
parent
1b85aed461
commit
b62af04f7f
@ -413,7 +413,9 @@ func waitForPod(podClient coreclient.PodsGetter, ns, name string, exitCondition
|
||||
ev, err := watch.Until(0, w, func(ev watch.Event) (bool, error) {
|
||||
return exitCondition(ev)
|
||||
})
|
||||
result = ev.Object.(*api.Pod)
|
||||
if ev != nil {
|
||||
result = ev.Object.(*api.Pod)
|
||||
}
|
||||
return err
|
||||
})
|
||||
return result, err
|
||||
|
Loading…
Reference in New Issue
Block a user