mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Make masterminion class accept whitelist
This commit is contained in:
parent
7928f2261c
commit
cec7b43139
@ -134,7 +134,8 @@ class MasterMinion(object):
|
||||
returners=True,
|
||||
states=True,
|
||||
rend=True,
|
||||
matcher=True):
|
||||
matcher=True,
|
||||
whitelist=None):
|
||||
self.opts = opts
|
||||
self.opts['grains'] = salt.loader.grains(opts)
|
||||
self.opts['pillar'] = {}
|
||||
@ -148,7 +149,9 @@ class MasterMinion(object):
|
||||
'''
|
||||
Load all of the modules for the minion
|
||||
'''
|
||||
self.functions = salt.loader.minion_mods(self.opts)
|
||||
self.functions = salt.loader.minion_mods(
|
||||
self.opts,
|
||||
whitelist=whitelist)
|
||||
if self.mk_returners:
|
||||
self.returners = salt.loader.returners(self.opts, self.functions)
|
||||
if self.mk_states:
|
||||
|
Loading…
Reference in New Issue
Block a user