fix after rebase

This commit is contained in:
Daniel Smith 2014-06-19 13:33:36 -07:00
parent 64b419072f
commit 5a1a793784

View File

@ -33,13 +33,13 @@ func MakeMockPodRegistry(pods []api.Pod) *MockPodRegistry {
} }
} }
func (registry *MockPodRegistry) ListPods(query labels.Query) ([]api.Pod, error) { func (registry *MockPodRegistry) ListPods(selector labels.Selector) ([]api.Pod, error) {
if registry.err != nil { if registry.err != nil {
return registry.pods, registry.err return registry.pods, registry.err
} }
var filtered []api.Pod var filtered []api.Pod
for _, pod := range registry.pods { for _, pod := range registry.pods {
if query.Matches(labels.Set(pod.Labels)) { if selector.Matches(labels.Set(pod.Labels)) {
filtered = append(filtered, pod) filtered = append(filtered, pod)
} }
} }