Commit 009c5e11 authored by Dawn Chen's avatar Dawn Chen

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

parent 4e539001
......@@ -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
......
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