mirror of https://github.com/k3s-io/k3s
Merge pull request #3479 from dchen1107/cleanup
Using ExtractObj instead of ExtractToList since BoundPods is not a List ...pull/6/head
commit
f07a5d1ead
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue