mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Pack modules to runners
This commit is contained in:
parent
b16d828896
commit
509b4352f2
@ -553,9 +553,12 @@ def runner(opts):
|
||||
'''
|
||||
Directly call a function inside a loader directory
|
||||
'''
|
||||
pack = {'name': '__salt__',
|
||||
'value': minion_mods(opts)}
|
||||
return NewLazyLoader(_module_dirs(opts, 'runners', 'runner', ext_type_dirs='runner_dirs'),
|
||||
opts,
|
||||
tag='runners',
|
||||
pack=pack
|
||||
)
|
||||
|
||||
|
||||
|
@ -53,7 +53,7 @@ class LoaderGlobalsTest(integration.ModuleCase):
|
||||
# Now, test each module!
|
||||
for item in global_vars:
|
||||
for name in names:
|
||||
self.assertIn(name, item)
|
||||
self.assertIn(name, item.keys())
|
||||
|
||||
def test_auth(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user