remove not from vault utils

If the role is 'master' then the vault configs should just be pulled from the
opts dictionary
This commit is contained in:
Daniel Wallace 2017-12-06 10:42:56 -07:00
parent d6c37ea19c
commit 6a5e0f9ac1
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -98,7 +98,7 @@ def _get_vault_connection():
Get the connection details for calling Vault, from local configuration if
it exists, or from the master otherwise
'''
if 'vault' in __opts__ and not __opts__.get('__role', 'minion') == 'master':
if 'vault' in __opts__ and __opts__.get('__role', 'minion') == 'master':
log.debug('Using Vault connection details from local config')
try:
return {