summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-04-06 13:06:43 +0000
committerTarmac <>2011-04-06 13:06:43 +0000
commit134b1b4caa9df1cbba54b09625696e4f60147e05 (patch)
treeee351d2e0e08a2456beccbabe0af25f1a949f71c /nova/api
parent2899076039c936062a1173545c36858187c1fafc (diff)
parent37fc53350b029e2eecaea78207f8769072c30d9f (diff)
Only create ca_path directory if it does not already exist.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 99520b302..58effd134 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -110,7 +110,8 @@ class CloudController(object):
'genrootca.sh')
start = os.getcwd()
- os.makedirs(FLAGS.ca_path)
+ if not os.path.exists(FLAGS.ca_path):
+ 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)