Remove deprecation: BaseException.message deprecated as of 2.6

This commit is contained in:
Bo Maryniuk 2016-07-13 11:44:33 +02:00
parent 0e65cfec91
commit 8699194647

View file

@ -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: