summaryrefslogtreecommitdiff
path: root/nova/crypto.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-02-24 18:29:34 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2012-02-26 00:54:36 -0800
commit8da178d7f7334dfa0027a8ae74129943856c1fb2 (patch)
tree52fd52999c2c2b672c782417b2804b35beeca69b /nova/crypto.py
parente60398ba2ce95a0cd36ecfedb5a2df57552b2f82 (diff)
downloadnova-8da178d7f7334dfa0027a8ae74129943856c1fb2.tar.gz
Fixes cloudpipe extension to work with keystone
* Removes deprecated auth from cloudpipe extension * Fixes pipelib to not use ec2_api * Changes vpn_image_id to be a uuid * Uses network api to retrieve information * Simplifies cloudpipe tests * Removes nova-manage cloudpipe launching * Removes related unused db methods * Fixes bug 940744 Change-Id: I5fd1fb49a9e11b89062aa754501fed29874cb6ee
Diffstat (limited to 'nova/crypto.py')
-rw-r--r--nova/crypto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/crypto.py b/nova/crypto.py
index 64a4af6837..450140c3d5 100644
--- a/nova/crypto.py
+++ b/nova/crypto.py
@@ -281,7 +281,7 @@ def generate_vpn_files(project_id):
# this will be changed to be launched by a real user. At
# that point we will can delete this helper method.
key, csr = generate_x509_cert('project-vpn', project_id, 2048)
- with open(key_fn, 'f') as keyfile:
+ with open(key_fn, 'w') as keyfile:
keyfile.write(key)
with open(crt_fn, 'w') as crtfile:
crtfile.write(csr)