From 3414a82138631e6c3ecbc48a81c0b44dc87dc0f9 Mon Sep 17 00:00:00 2001 From: Matt DeBoer Date: Sat, 18 Mar 2017 23:56:19 -0700 Subject: [PATCH] don't shadow membersAPI --- pkg/discovery/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/discovery/discovery.go b/pkg/discovery/discovery.go index 238d51f..fc5a018 100644 --- a/pkg/discovery/discovery.go +++ b/pkg/discovery/discovery.go @@ -105,7 +105,7 @@ func (d *Discovery) DiscoverEnvironment() (map[string]string, error) { continue } - membersAPI := etcd.NewMembersAPI(etcdClient) + membersAPI = etcd.NewMembersAPI(etcdClient) currentMembers, err = membersAPI.List(ctx) if err != nil { log.Warnf("Error listing members %s %v, %v", master.Name, master.ClientURLs, err)