From 1924e328cae62a7835c30122f01dbe73218a8cae Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 10 Mar 2010 23:28:06 +0000 Subject: [PATCH] CTS: fix deletion of the tmp root for augeas git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2679 fd59a12c-fef9-0310-b244-a6a79926bd2f --- cts/corosync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cts/corosync.py b/cts/corosync.py index 1c3ee7df..09c55afc 100644 --- a/cts/corosync.py +++ b/cts/corosync.py @@ -60,7 +60,8 @@ class CoroConfig(object): self.corobase = corobase example = self.corobase + "/conf/corosync.conf.example" - shutil.rmtree (self.new_root) + if os.path.isdir(self.new_root): + shutil.rmtree (self.new_root) os.makedirs (self.new_root + "/etc/corosync") shutil.copy (example, self.new_root + "/etc/corosync/corosync.conf")