rkt: correctly copy container status in GetPods()

This commit is contained in:
Yu-Ju Hong 2015-11-18 18:18:53 -08:00
parent 742243bb4a
commit 759795592d

View File

@ -808,6 +808,9 @@ func (r *Runtime) GetPods(all bool) ([]*kubecontainer.Pod, error) {
glog.Warningf("rkt: Cannot construct pod from unit file: %v.", err)
continue
}
for _, c := range pod.Containers {
c.Status = status
}
pods = append(pods, pod)
}
}