mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #19211 from garethgreenaway/returner_with_profile_fix
Fixes to returner __init__.py
This commit is contained in:
commit
7896ceeecd
@ -198,13 +198,15 @@ def _fetch_profile_opts(
|
||||
|
||||
# Using a profile and it is in _options
|
||||
|
||||
creds = {}
|
||||
profile = _options[profile_attr]
|
||||
log.info('Using profile %s', profile)
|
||||
if profile:
|
||||
log.info('Using profile %s', profile)
|
||||
|
||||
if 'config.option' in __salt__:
|
||||
creds = cfg(profile)
|
||||
else:
|
||||
creds = cfg.get(profile)
|
||||
if 'config.option' in __salt__:
|
||||
creds = cfg(profile)
|
||||
else:
|
||||
creds = cfg.get(profile)
|
||||
|
||||
if not creds:
|
||||
return {}
|
||||
|
Loading…
Reference in New Issue
Block a user