Skip to content

Commit

Permalink
don't shadow membersAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Mar 19, 2017
1 parent 0f9c49f commit 3414a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3414a82

Please sign in to comment.