Skip to content

Commit

Permalink
Fixes bug 757033
Browse files Browse the repository at this point in the history
different CA path definitions

Change-Id: I55bb9df1b4b4a0095c4d62215847b730976028ee
  • Loading branch information
jogo committed Nov 18, 2011
1 parent 15937a4 commit 8a0370e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nova/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ def generate_x509_cert(user_id, project_id, bits=1024):

def _ensure_project_folder(project_id):
if not os.path.exists(ca_path(project_id)):
geninter_sh_path = os.path.join(os.path.dirname(__file__),
'CA',
geninter_sh_path = os.path.join(FLAGS.ca_path,
'geninter.sh')
start = os.getcwd()
os.chdir(ca_folder())
Expand All @@ -238,8 +237,7 @@ def generate_vpn_files(project_id):
csr_fn = os.path.join(project_folder, 'server.csr')
crt_fn = os.path.join(project_folder, 'server.crt')

genvpn_sh_path = os.path.join(os.path.dirname(__file__),
'CA',
genvpn_sh_path = os.path.join(FLAGS.ca_path,
'genvpn.sh')
if os.path.exists(crt_fn):
return
Expand Down

0 comments on commit 8a0370e

Please sign in to comment.