Commit f07a5d1e authored by Daniel Smith's avatar Daniel Smith

Merge pull request #3479 from dchen1107/cleanup

Using ExtractObj instead of ExtractToList since BoundPods is not a List ...
parents 5715b19e 009c5e11
......@@ -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