Skip to content
This repository was archived by the owner on Aug 18, 2019. It is now read-only.

Commit

Permalink
etcd: use old default data-dir format
Browse files Browse the repository at this point in the history
  • Loading branch information
bcwaldon committed Oct 24, 2014
1 parent e630910 commit 677d9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/machine*
/bin
.vagrant
*_etcd_data
*.etcd
/etcd
*.swp
/hack/insta-discovery/.env
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func startEtcd() {
}

if *dir == "" {
*dir = fmt.Sprintf("%v_etcd_data", *name)
*dir = fmt.Sprintf("%v.etcd", *name)
log.Printf("etcd: no data-dir provided, using default data-dir ./%s", *dir)
}
if err := os.MkdirAll(*dir, privateDirMode); err != nil {
Expand Down

0 comments on commit 677d9d1

Please sign in to comment.