mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Make __grains__
and __salt__
available for log_handler modules
Refs #26390
This commit is contained in:
parent
740e7aa82f
commit
54ad6532f2
@ -449,6 +449,10 @@ def log_handlers(opts):
|
||||
|
||||
:param dict opts: The Salt options dictionary
|
||||
'''
|
||||
pack = {
|
||||
'__grains__': grains(opts),
|
||||
'__salt__': minion_mods(opts)
|
||||
}
|
||||
ret = LazyLoader(_module_dirs(opts,
|
||||
'log_handlers',
|
||||
'log_handlers',
|
||||
@ -456,6 +460,7 @@ def log_handlers(opts):
|
||||
base_path=os.path.join(SALT_BASE_PATH, 'log')),
|
||||
opts,
|
||||
tag='log_handlers',
|
||||
pack=pack
|
||||
)
|
||||
return FilterDictWrapper(ret, '.setup_handlers')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user