added certs dir in the test

This commit is contained in:
Clint Savage 2012-10-28 23:59:27 -06:00
parent 027168afb2
commit 84dc349810

View File

@ -430,8 +430,9 @@ def create_self_signed_cert(
if not os.path.exists('{0}/{1}/certs/'.format(_cert_base_path(), tls_dir)):
os.makedirs("{0}/{1}/certs/".format(_cert_base_path(), tls_dir))
print '{0}/{1}/{2}.crt'.format(_cert_base_path(), tls_dir, CN)
if os.path.exists(
'{0}/{1}/{2}.crt'.format(_cert_base_path(), tls_dir, CN)
'{0}/{1}/certs/{2}.crt'.format(_cert_base_path(), tls_dir, CN)
):
return 'Certificate "{0}" already exists'.format(tls_dir)