Only create ca_path directory if it does not already exist.

This commit is contained in:
Soren Hansen 2011-04-06 13:06:43 +00:00 committed by Tarmac
commit 134b1b4caa
1 changed files with 2 additions and 1 deletions

View File

@ -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)