mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
update MasterPillarUtil
update get_minion_grains method. Return empty dict if target list is empty
This commit is contained in:
parent
fe636f53f8
commit
1fb94a08e0
1 changed files with 2 additions and 0 deletions
|
@ -307,6 +307,8 @@ class MasterPillarUtil(object):
|
|||
'''
|
||||
minion_grains = {}
|
||||
minion_ids = self._tgt_to_list()
|
||||
if not minios_ids:
|
||||
return {}
|
||||
if any(arg for arg in [self.use_cached_grains, self.grains_fallback]):
|
||||
log.debug('Getting cached minion data.')
|
||||
cached_minion_grains, cached_minion_pillars = self._get_cached_minion_data(*minion_ids)
|
||||
|
|
Loading…
Add table
Reference in a new issue