Using ExtractObj instead of ExtractToList since BoundPods is not a List type

This commit is contained in:
Dawn Chen 2015-01-14 14:03:20 -08:00
parent 4e539001df
commit 009c5e1129

View File

@ -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