mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
The code calling cfg as a function vs treating it as a dictionary and using get is currently backwards causing returners to fail when used from the CLI and in scheduled jobs.
This commit is contained in:
parent
9bfb066c2c
commit
5df6b52568
1 changed files with 2 additions and 2 deletions
|
@ -208,9 +208,9 @@ def _fetch_profile_opts(
|
|||
log.info('Using profile %s', profile)
|
||||
|
||||
if 'config.option' in __salt__:
|
||||
creds = cfg.get(profile)
|
||||
else:
|
||||
creds = cfg(profile)
|
||||
else:
|
||||
creds = cfg.get(profile)
|
||||
|
||||
if not creds:
|
||||
return {}
|
||||
|
|
Loading…
Add table
Reference in a new issue