Merge pull request #3479 from dchen1107/cleanup

Using ExtractObj instead of ExtractToList since BoundPods is not a List ...
pull/6/head
Daniel Smith 2015-01-14 14:15:43 -08:00
commit f07a5d1ead
1 changed files with 1 additions and 1 deletions

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