Skip to content

Commit

Permalink
NewSecureClient() now returns an error if NewEtcdConfig fails
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed Aug 11, 2018
1 parent 69508ee commit 981bc8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions etcdutil/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func init() {
func NewSecureClient(cfg *etcd.Config) (*etcd.Client, error) {
var err error
if cfg, err = NewEtcdConfig(cfg); err != nil {
return nil, errors.Wrap(err, "failed to build etcd config")
}

etcdClt, err := etcd.New(*cfg)
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.5
1.8.1

0 comments on commit 981bc8e

Please sign in to comment.