mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33827 from cachedout/issue_33810
Fix broken locate.locate function
This commit is contained in:
commit
ec09095c45
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ def locate(pattern, database='', limit=0, **kwargs):
|
|||
'wholename': 'w',
|
||||
}
|
||||
for option in kwargs:
|
||||
if bool(kwargs[option]) is True:
|
||||
if bool(kwargs[option]) is True and option in toggles:
|
||||
options += toggles[option]
|
||||
if options:
|
||||
options = '-{0}'.format(options)
|
||||
|
|
Loading…
Add table
Reference in a new issue