mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Minor: syntax error fixes.
This commit is contained in:
parent
29660ed672
commit
be61f97db3
1 changed files with 2 additions and 2 deletions
|
@ -234,12 +234,12 @@ class CkMinions(object):
|
|||
If not 'greedy' return the only minions have cache data and matched by the condition.
|
||||
'''
|
||||
cache_enabled = self.opts.get('minion_data_cache', False)
|
||||
cdir = os.path.join(self.opts['cachedir'], 'minions')
|
||||
|
||||
def list_cached_minions():
|
||||
cdir = os.path.join(self.opts['cachedir'], 'minions')
|
||||
if not os.path.isdir(cdir):
|
||||
return []
|
||||
return os.listdir(cdir):
|
||||
return os.listdir(cdir)
|
||||
|
||||
if greedy:
|
||||
minions = []
|
||||
|
|
Loading…
Add table
Reference in a new issue