summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-15 12:29:07 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-15 12:29:07 -0400
commit7e34868c0c6bfe788deb2891a67b230e856fbdb1 (patch)
tree185081d12587e819d0d811dd7f73d85d5ec19e64 /src
parent5784318c1905c24ae161cb1dad044de41f2e9b43 (diff)
downloadbcfg2-7e34868c0c6bfe788deb2891a67b230e856fbdb1.tar.gz
bcfg2-7e34868c0c6bfe788deb2891a67b230e856fbdb1.tar.bz2
bcfg2-7e34868c0c6bfe788deb2891a67b230e856fbdb1.zip
init: fixed creation of repo directory
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Admin/Init.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Init.py b/src/lib/Bcfg2/Server/Admin/Init.py
index 1eb5d247a..48fa89498 100644
--- a/src/lib/Bcfg2/Server/Admin/Init.py
+++ b/src/lib/Bcfg2/Server/Admin/Init.py
@@ -212,7 +212,7 @@ class Init(Bcfg2.Server.Admin.Mode):
"""Ask for the repository path."""
while True:
newrepo = safe_input("Location of Bcfg2 repository [%s]: " %
- self.data['repopath'])
+ self.data['repopath'])
if newrepo != '':
self.data['repopath'] = os.path.abspath(newrepo)
if os.path.isdir(self.data['repopath']):
@@ -221,7 +221,7 @@ class Init(Bcfg2.Server.Admin.Mode):
if response.lower().strip() == 'y':
break
else:
- os.makedirs(newrepo)
+ os.makedirs(self.data['repopath'])
break
def _prompt_password(self):