mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #3479 from dchen1107/cleanup
Using ExtractObj instead of ExtractToList since BoundPods is not a List ...
This commit is contained in:
commit
f07a5d1ead
@ -59,7 +59,7 @@ func NewSourceEtcd(key string, client tools.EtcdClient, updates chan<- interface
|
|||||||
|
|
||||||
func (s *sourceEtcd) run() {
|
func (s *sourceEtcd) run() {
|
||||||
boundPods := api.BoundPods{}
|
boundPods := api.BoundPods{}
|
||||||
err := s.helper.ExtractToList(s.key, &boundPods)
|
err := s.helper.ExtractObj(s.key, &boundPods, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
|
glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user