mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
look for extension grains
This commit is contained in:
parent
a1d672cdcb
commit
6eb94f9914
1 changed files with 5 additions and 1 deletions
|
@ -100,9 +100,13 @@ def grains(opts):
|
|||
Return the functions for the dynamic grains and the values for the static
|
||||
grains.
|
||||
'''
|
||||
extra_dirs = [
|
||||
os.path.join(opts['extension_modules'],
|
||||
'grains')
|
||||
]
|
||||
module_dirs = [
|
||||
os.path.join(salt_base_path, 'grains'),
|
||||
]
|
||||
] + extra_dirs
|
||||
load = Loader(module_dirs, opts)
|
||||
grains = load.gen_grains()
|
||||
if 'grains' in opts:
|
||||
|
|
Loading…
Add table
Reference in a new issue