summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-04-05 13:16:12 +0200
committerSoren Hansen <soren@linux2go.dk>2011-04-05 13:16:12 +0200
commitd7013c9617d0740976a78ba87b1214c2b15ee702 (patch)
tree6cb2cac12d8bceb96941f5f3796a1ae5944cc2b1 /nova/api
parentff23dd2a3b86c816da04eddc903de0c8c3141954 (diff)
Automatically create CA state dir, and make sure the CA scripts look for the templates in the right places.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index f119bd75c..5d6d9537a 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -110,6 +110,7 @@ class CloudController(object):
'genrootca.sh')
start = os.getcwd()
+ os.makedirs(FLAGS.ca_path)
os.chdir(FLAGS.ca_path)
# TODO(vish): Do this with M2Crypto instead
utils.runthis(_("Generating root CA: %s"), "sh", genrootca_sh_path)