mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
publicize salt.utils.get_vault_connection()
This commit is contained in:
parent
1d843d4526
commit
cab41921c3
1 changed files with 2 additions and 2 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Reference in a new issue