mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add option to master config reader on ignoring system exit for wrong configuration
This commit is contained in:
parent
abd10b5782
commit
fb7542f920
1 changed files with 3 additions and 3 deletions
|
@ -2965,7 +2965,7 @@ def apply_minion_config(overrides=None,
|
|||
return opts
|
||||
|
||||
|
||||
def master_config(path, env_var='SALT_MASTER_CONFIG', defaults=None):
|
||||
def master_config(path, env_var='SALT_MASTER_CONFIG', defaults=None, exit_on_config_errors=False):
|
||||
'''
|
||||
Reads in the master configuration file and sets up default options
|
||||
|
||||
|
@ -2992,8 +2992,8 @@ def master_config(path, env_var='SALT_MASTER_CONFIG', defaults=None):
|
|||
defaults['default_include'])
|
||||
include = overrides.get('include', [])
|
||||
|
||||
overrides.update(include_config(default_include, path, verbose=False))
|
||||
overrides.update(include_config(include, path, verbose=True))
|
||||
overrides.update(include_config(default_include, path, verbose=False), exit_on_config_errors=exit_on_config_errors)
|
||||
overrides.update(include_config(include, path, verbose=True), exit_on_config_errors=exit_on_config_errors)
|
||||
opts = apply_master_config(overrides, defaults)
|
||||
_validate_opts(opts)
|
||||
# If 'nodegroups:' is uncommented in the master config file, and there are
|
||||
|
|
Loading…
Add table
Reference in a new issue