mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #7351 from davecheney/fixedbugs/7350
pkg/transport: remove dependency on pkg/fileutils
This commit is contained in:
commit
4e114d3549
@ -30,7 +30,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/coreos/etcd/pkg/fileutil"
|
|
||||||
"github.com/coreos/etcd/pkg/tlsutil"
|
"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) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user