mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove deprecation: BaseException.message deprecated as of 2.6
This commit is contained in:
parent
0e65cfec91
commit
8699194647
1 changed files with 2 additions and 1 deletions
|
@ -1567,7 +1567,7 @@ def load_config(path, env_var, default_path=None):
|
|||
opts['conf_file'] = path
|
||||
return opts
|
||||
except salt.exceptions.SaltConfigurationError as error:
|
||||
log.error(error.message)
|
||||
log.error(error)
|
||||
sys.exit(salt.defaults.exitcodes.EX_GENERIC)
|
||||
|
||||
log.debug('Missing configuration file: {0}'.format(path))
|
||||
|
@ -1613,6 +1613,7 @@ def include_config(include, orig_path, verbose):
|
|||
try:
|
||||
opts = _read_conf_file(fn_)
|
||||
except salt.exceptions.SaltConfigurationError as error:
|
||||
log.error(error)
|
||||
sys.exit(salt.defaults.exitcodes.EX_GENERIC)
|
||||
include = opts.get('include', [])
|
||||
if include:
|
||||
|
|
Loading…
Add table
Reference in a new issue