Skip to content

Commit

Permalink
Merge "Revert "Fixes bug 757033""
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Nov 22, 2011
2 parents b07d3cd + a3ea70c commit e35ed7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nova/crypto.py
Expand Up @@ -223,7 +223,8 @@ 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(FLAGS.ca_path,
geninter_sh_path = os.path.join(os.path.dirname(__file__),
'CA',
'geninter.sh')
start = os.getcwd()
os.chdir(ca_folder())
Expand All @@ -237,7 +238,8 @@ 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(FLAGS.ca_path,
genvpn_sh_path = os.path.join(os.path.dirname(__file__),
'CA',
'genvpn.sh')
if os.path.exists(crt_fn):
return
Expand Down

0 comments on commit e35ed7c

Please sign in to comment.