Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
etcdutil: NewTLSConfig() don't delete certs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchaodeng committed Mar 8, 2018
1 parent 217a98c commit 0580463
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/util/etcdutil/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package etcdutil
import (
"crypto/tls"
"io/ioutil"
"os"
"path/filepath"

"github.com/coreos/etcd/pkg/transport"
Expand All @@ -34,7 +33,6 @@ func NewTLSConfig(certData, keyData, caData []byte) (*tls.Config, error) {
if err != nil {
return nil, err
}
defer os.RemoveAll(dir)

certFile, err := writeFile(dir, CliCertFile, certData)
if err != nil {
Expand Down

0 comments on commit 0580463

Please sign in to comment.