Commit 7b44f88c authored by Tim Hockin's avatar Tim Hockin

Merge pull request #1127 from ddysher/pod-list

Fix pod status error with List method.
parents a762fb85 d5289495
......@@ -108,7 +108,10 @@ func (rs *RegistryStorage) List(selector labels.Selector) (interface{}, error) {
pods, err := rs.registry.ListPods(selector)
if err == nil {
for i := range pods.Items {
rs.fillPodInfo(&pods.Items[i])
pod := &pods.Items[i]
rs.fillPodInfo(pod)
pod.CurrentState.Status = getPodStatus(pod)
pod.CurrentState.HostIP = getInstanceIP(rs.cloudProvider, pod.CurrentState.Host)
}
}
return pods, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment