mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Load grains properly
This commit is contained in:
parent
6ed6c31e4f
commit
bb12da9a3b
1 changed files with 1 additions and 1 deletions
|
@ -31,11 +31,11 @@ class StatusBeaconTestCase(TestCase, LoaderModuleMockMixin):
|
|||
|
||||
def setup_loader_modules(self):
|
||||
opts = salt.config.DEFAULT_MINION_OPTS
|
||||
opts['grains'] = salt.loader.grains(opts)
|
||||
module_globals = {
|
||||
'__opts__': opts,
|
||||
'__salt__': 'autoload',
|
||||
'__context__': {},
|
||||
'__grains__': {'kernel': 'Linux'}
|
||||
}
|
||||
return {
|
||||
status: module_globals,
|
||||
|
|
Loading…
Add table
Reference in a new issue