summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin/Init.py
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2011-01-03 23:13:53 +0100
committerSol Jerome <sol.jerome@gmail.com>2011-01-05 20:43:42 -0600
commit901ae62249665ed813f0978ef10ed2063992f674 (patch)
treece41a741738dddab60bcdff814845eae0375b6f8 /src/lib/Server/Admin/Init.py
parent9bc2e3d9e744c0a2901a337c7c457ee2dcd5ce4c (diff)
downloadbcfg2-901ae62249665ed813f0978ef10ed2063992f674.tar.gz
bcfg2-901ae62249665ed813f0978ef10ed2063992f674.tar.bz2
bcfg2-901ae62249665ed813f0978ef10ed2063992f674.zip
Small fix
(cherry picked from commit 0743aa20d0ee4c7b9cff50d814503e80efe6d433) Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Admin/Init.py')
-rw-r--r--src/lib/Server/Admin/Init.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py
index d49c19fa1..aee91b244 100644
--- a/src/lib/Server/Admin/Init.py
+++ b/src/lib/Server/Admin/Init.py
@@ -276,15 +276,15 @@ class Init(Bcfg2.Server.Admin.Mode):
newcountry = raw_input("Country name (2 letter code) for certificate: ")
if newcountry != '':
if len(newcountry) == 2:
- country = newcountry
+ self.country = newcountry
else:
while len(newcountry) != 2:
newcountry = raw_input("2 letter country code (eg. US): ")
if len(newcountry) == 2:
- country = newcountry
+ self.country = newcountry
break
else:
- country = 'US'
+ self.country = 'US'
newstate = raw_input("State or Province Name (full name) for certificate: ")
if newstate != '':