Skip to content

Commit

Permalink
etcd data dir is now default.etcd; clean it when starting etcd
Browse files Browse the repository at this point in the history
I'm not sure if it was previously .default.etcd with another version, but I see no harm from keeping
the rmtree for that name as well.
  • Loading branch information
nelljerram committed Jan 16, 2023
1 parent 99e61e2 commit 8f6664f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def tearDown(self):

def start_etcd_server(self):
shutil.rmtree(".default.etcd", ignore_errors=True)
shutil.rmtree("default.etcd", ignore_errors=True)
self.etcd = subprocess.Popen([
"/usr/local/bin/etcd",
"--advertise-client-urls", "http://127.0.0.1:2379",
Expand Down

0 comments on commit 8f6664f

Please sign in to comment.