mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #41287 from garethgreenaway/40748_2016_11_consul
Fix to consul cache
This commit is contained in:
commit
29bd7f48b7
@ -251,12 +251,9 @@ 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():
|
||||
if not os.path.isdir(cdir):
|
||||
return []
|
||||
return os.listdir(cdir)
|
||||
return self.cache.list('minions')
|
||||
|
||||
if greedy:
|
||||
minions = []
|
||||
|
Loading…
Reference in New Issue
Block a user