publicize salt.utils.get_vault_connection()

This commit is contained in:
Ronald van Zantvoort 2018-08-19 00:22:37 +02:00
parent 1d843d4526
commit cab41921c3
No known key found for this signature in database
GPG key ID: D3DE53B7EFF75061

View file

@ -91,7 +91,7 @@ def _get_token_and_url_from_master():
}
def _get_vault_connection():
def get_vault_connection():
'''
Get the connection details for calling Vault, from local configuration if
it exists, or from the master otherwise
@ -139,7 +139,7 @@ def make_request(method, resource, profile=None, **args):
# Deprecated code path
return make_request_with_profile(method, resource, profile, **args)
connection = _get_vault_connection()
connection = get_vault_connection()
token, vault_url = connection['token'], connection['url']
if 'verify' not in args:
args['verify'] = connection['verify']