mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2018.3' into bp-47005
This commit is contained in:
commit
f68caa633f
3 changed files with 6 additions and 5 deletions
|
@ -305,7 +305,7 @@ the minion. The ``beacon`` function therefore cannot block and should be as
|
|||
lightweight as possible. The ``beacon`` also must return a list of dicts, each
|
||||
dict in the list will be translated into an event on the master.
|
||||
|
||||
Beacons may also choose to implement a ``__validate__`` function which
|
||||
Beacons may also choose to implement a ``validate`` function which
|
||||
takes the beacon configuration as an argument and ensures that it
|
||||
is valid prior to continuing. This function is called automatically
|
||||
by the Salt loader when a beacon is loaded.
|
||||
|
|
|
@ -27,7 +27,7 @@ def __virtual__():
|
|||
'only available on AIX systems.')
|
||||
|
||||
|
||||
def __validate__(config):
|
||||
def validate(config):
|
||||
'''
|
||||
Validate the beacon configuration
|
||||
'''
|
||||
|
|
|
@ -271,9 +271,10 @@ class CkMinions(object):
|
|||
regex_match=False,
|
||||
exact_match=False):
|
||||
'''
|
||||
Helper function to search for minions in master caches
|
||||
If 'greedy' return accepted minions that matched by the condition or absend in the cache.
|
||||
If not 'greedy' return the only minions have cache data and matched by the condition.
|
||||
Helper function to search for minions in master caches If 'greedy',
|
||||
then return accepted minions matched by the condition or those absent
|
||||
from the cache. If not 'greedy' return the only minions have cache
|
||||
data and matched by the condition.
|
||||
'''
|
||||
cache_enabled = self.opts.get('minion_data_cache', False)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue