mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
added certs dir in the test
This commit is contained in:
parent
027168afb2
commit
84dc349810
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user