summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-15 10:48:41 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-15 10:48:41 -0400
commit251070737f0cf69945ae2e2790e9fda28d79d546 (patch)
treea3a752d5a00ba8faefbdd61770935d84ddccea15
parent2500f64e66a2d664b35263bf228d8302944acb62 (diff)
downloadbcfg2-251070737f0cf69945ae2e2790e9fda28d79d546.tar.gz
bcfg2-251070737f0cf69945ae2e2790e9fda28d79d546.tar.bz2
bcfg2-251070737f0cf69945ae2e2790e9fda28d79d546.zip
bcfg2-admin init: create specification directory if it doesn't exist
-rw-r--r--src/lib/Bcfg2/Server/Admin/Init.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Init.py b/src/lib/Bcfg2/Server/Admin/Init.py
index f2d6d7efa..1eb5d247a 100644
--- a/src/lib/Bcfg2/Server/Admin/Init.py
+++ b/src/lib/Bcfg2/Server/Admin/Init.py
@@ -221,6 +221,7 @@ class Init(Bcfg2.Server.Admin.Mode):
if response.lower().strip() == 'y':
break
else:
+ os.makedirs(newrepo)
break
def _prompt_password(self):