diff --git a/pkg/registry/pod/rest.go b/pkg/registry/pod/rest.go index 13a77c40974..fae5f1c3721 100644 --- a/pkg/registry/pod/rest.go +++ b/pkg/registry/pod/rest.go @@ -311,7 +311,7 @@ func getPodStatus(pod *api.Pod, minions client.MinionInterface) (api.PodStatus, } } switch { - case running > 0 && stopped == 0 && unknown == 0: + case running > 0 && unknown == 0: return api.PodRunning, nil case running == 0 && stopped > 0 && unknown == 0: return api.PodTerminated, nil diff --git a/pkg/registry/pod/rest_test.go b/pkg/registry/pod/rest_test.go index a7db0396f35..b809a7580a5 100644 --- a/pkg/registry/pod/rest_test.go +++ b/pkg/registry/pod/rest_test.go @@ -496,7 +496,7 @@ func TestMakePodStatus(t *testing.T) { Host: "machine", }, }, - api.PodWaiting, + api.PodRunning, "mixed state #1", }, {