Skip to content

Commit

Permalink
Fixing the scenario when vault values are used in Pillar, but due to …
Browse files Browse the repository at this point in the history
…a previous change the minion was not being granted token based access.
  • Loading branch information
garethgreenaway committed Sep 28, 2018
1 parent 804d52c commit b0ba2ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/utils/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def _use_local_config():
raise salt.exceptions.CommandExecutionError(errmsg)

if 'vault' in __opts__ and __opts__.get('__role', 'minion') == 'master':
return _use_local_config()
log.debug('Contacting master for Vault connection details')
return _get_token_and_url_from_master()
elif any((__opts__['local'], __opts__['file_client'] == 'local', __opts__['master_type'] == 'disable')):
return _use_local_config()
else:
Expand Down

0 comments on commit b0ba2ec

Please sign in to comment.