From 009c5e1129a2998400ea56212d50498bedebd66c Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Wed, 14 Jan 2015 14:03:20 -0800 Subject: [PATCH] Using ExtractObj instead of ExtractToList since BoundPods is not a List type --- pkg/kubelet/config/etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/config/etcd.go b/pkg/kubelet/config/etcd.go index b2577bbf66c..0f091669f99 100644 --- a/pkg/kubelet/config/etcd.go +++ b/pkg/kubelet/config/etcd.go @@ -59,7 +59,7 @@ func NewSourceEtcd(key string, client tools.EtcdClient, updates chan<- interface func (s *sourceEtcd) run() { boundPods := api.BoundPods{} - err := s.helper.ExtractToList(s.key, &boundPods) + err := s.helper.ExtractObj(s.key, &boundPods, false) if err != nil { glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err) return