Pack modules to runners

This commit is contained in:
Thomas Jackson 2015-02-02 08:49:22 -08:00
parent b16d828896
commit 509b4352f2
2 changed files with 4 additions and 1 deletions

View File

@ -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
)

View File

@ -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):
'''