mirror of https://github.com/k3s-io/k3s
rkt: fix KillPod() to return the correct error message.
parent
201d60b426
commit
2d2225414f
|
@ -1045,7 +1045,8 @@ func (r *Runtime) KillPod(pod *api.Pod, runningPod kubecontainer.Pod) error {
|
|||
|
||||
res := <-reschan
|
||||
if res != "done" {
|
||||
glog.Errorf("rkt: Failed to stop unit %q: %s", serviceName, res)
|
||||
err := fmt.Errorf("invalid result: %s", res)
|
||||
glog.Errorf("rkt: Failed to stop unit %q: %v", serviceName, err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue