mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Handle includes in include_config
recursively
This allows for using `include` in an included file, which was previously ignored.
This commit is contained in:
parent
e15eeee2d3
commit
1d80520958
1 changed files with 8 additions and 1 deletions
|
@ -1491,7 +1491,14 @@ def include_config(include, orig_path, verbose):
|
|||
|
||||
for fn_ in sorted(glob.glob(path)):
|
||||
log.debug('Including configuration from {0!r}'.format(fn_))
|
||||
salt.utils.dictupdate.update(configuration, _read_conf_file(fn_))
|
||||
opts = _read_conf_file(fn_)
|
||||
|
||||
include = opts.get('include', [])
|
||||
if include:
|
||||
opts.update(include_config(include, fn_, verbose))
|
||||
|
||||
salt.utils.dictupdate.update(configuration, opts)
|
||||
|
||||
return configuration
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue