From bbf3d23513a27339af549294aa66aacaf5bb42bf Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 26 May 2011 13:06:45 -0400 Subject: [PATCH] run() fix: inroot could exist if we're running with --force --- src/pylorax/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index fbd85458..9842cf18 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -166,7 +166,8 @@ class Lorax(BaseLoraxClass): # create an install root self.inroot = joinpaths(ybo.conf.installroot, "installroot") - os.makedirs(self.inroot) + if not os.path.isdir(self.inroot): + os.makedirs(self.inroot) logger.debug("using install root: {0}".format(self.inroot)) ybo.conf.installroot = self.inroot