mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
a26c10a811
commit
b1dae5e6fe
1 changed files with 3 additions and 2 deletions
|
@ -467,8 +467,9 @@ def get_ca_bundle(opts=None):
|
|||
# Check Salt first
|
||||
for salt_root in file_roots.get('base', []):
|
||||
for path in ('cacert.pem', 'ca-bundle.crt'):
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
cert_path = os.path.join(salt_root, path)
|
||||
if os.path.exists(cert_path):
|
||||
return cert_path
|
||||
|
||||
locations = (
|
||||
# Debian has paths that often exist on other distros
|
||||
|
|
Loading…
Add table
Reference in a new issue