Merge pull request #7351 from davecheney/fixedbugs/7350

pkg/transport: remove dependency on pkg/fileutils
This commit is contained in:
Xiang Li 2017-02-21 09:21:53 -08:00 committed by GitHub
commit 4e114d3549

View File

@ -30,7 +30,6 @@ import (
"strings"
"time"
"github.com/coreos/etcd/pkg/fileutil"
"github.com/coreos/etcd/pkg/tlsutil"
)
@ -86,7 +85,7 @@ func (info TLSInfo) Empty() bool {
}
func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) {
if err = fileutil.TouchDirAll(dirpath); err != nil {
if err = os.MkdirAll(dirpath, 0700); err != nil {
return
}