salt-api no longer forces the default timeout

Conflicts:
  - salt/config/__init__.py
This commit is contained in:
Robin Björklin 2017-01-03 13:28:35 +01:00 committed by rallytime
parent 7b74436d13
commit 04d307f917

View file

@ -3315,15 +3315,12 @@ def api_config(path):
Read in the Salt Master config file and add additional configs that
need to be stubbed out for salt-api
'''
# Let's grab a copy of salt's master opts
opts = client_config(path, defaults=DEFAULT_MASTER_OPTS)
# Let's override them with salt-api's required defaults
api_opts = DEFAULT_API_OPTS
api_opts.update({
'pidfile': opts.get('api_pidfile', DEFAULT_API_OPTS['api_pidfile']),
'log_file': opts.get('api_logfile', DEFAULT_API_OPTS['api_logfile']),
})
opts.update(api_opts)
# Let's grab a copy of salt-api's required defaults
opts = DEFAULT_API_OPTS
# Let's override them with salt's master opts
opts.update(client_config(path, defaults=DEFAULT_MASTER_OPTS))
prepend_root_dir(opts, [
'api_pidfile',
'api_logfile',