mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix for returners that utilize profile attributes. code in the if else statement was backwards. #23512
This commit is contained in:
parent
6be7d8d13b
commit
81e31e27cf
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(profile)
|
||||
else:
|
||||
creds = cfg.get(profile)
|
||||
else:
|
||||
creds = cfg(profile)
|
||||
|
||||
if not creds:
|
||||
return {}
|
||||
|
|
Loading…
Add table
Reference in a new issue