fix for returners that utilize profile attributes. code in the if else statement was backwards. #23512

This commit is contained in:
Gareth J. Greenaway 2015-05-09 18:35:07 -07:00
parent 6be7d8d13b
commit 81e31e27cf

View file

@ -208,9 +208,9 @@ def _fetch_profile_opts(
log.info('Using profile %s', profile)
if 'config.option' in __salt__:
creds = cfg(profile)
else:
creds = cfg.get(profile)
else:
creds = cfg(profile)
if not creds:
return {}