mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
return all minions' grains if no tgt
This commit is contained in:
parent
f833bf3a79
commit
0340614d15
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,8 @@ class MasterPillarUtil(object):
|
|||
log.debug('Skipping cached mine data minion_data_cache'
|
||||
'and enfore_mine_cache are both disabled.')
|
||||
return mine_data
|
||||
if not minion_ids:
|
||||
minion_ids = self.cache.list('minions')
|
||||
for minion_id in minion_ids:
|
||||
if not salt.utils.verify.valid_id(self.opts, minion_id):
|
||||
continue
|
||||
|
@ -126,6 +128,8 @@ class MasterPillarUtil(object):
|
|||
log.debug('Skipping cached data because minion_data_cache is not '
|
||||
'enabled.')
|
||||
return grains, pillars
|
||||
if not minion_ids:
|
||||
minion_ids = self.cache.list('minions')
|
||||
for minion_id in minion_ids:
|
||||
if not salt.utils.verify.valid_id(self.opts, minion_id):
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue