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:
Gareth J. Greenaway 2015-05-29 11:16:44 -07:00
parent 9bfb066c2c
commit 5df6b52568

View file

@ -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 {}